This is an Arduino project that emulates a mouse and moves in the shape of a heart.
- General Information
- Technologies Used
- Features
- Setup
- Usage
- Acknowledgements
- Contact
- Idea Behind Project
- License
This project is Arduino-based and its main purpose is to emulate a mouse and draw the shape of a predefined function. In this case, the function represents a heart shape. This project serves as my first public Arduino project and is a step towards developing my programming skills and creating repositories.
- Python 3.9.1
- Arduino 1.8.19
- Mouse (by Arduino) 1.0.1
- Moves the mouse in the shape of a heart.
To set up the project, you need to install the Cpp file included in the repository on 32u4 or SAMD micro-based boards such as Pro Micro, Leonardo, Esplora, Zero, Due, and MKR Family. Connect the board to your computer through its micro's native USB port.
-
Install the Cpp file onto the microcontroller and connect it to the computer via the USB port.
-
Adjust the speed by editing the
delayTime
parameter in line 6 of the Cpp file:#define delayTime 3
-
Adjust the number of points by editing the
step
parameter in theMap.py
file.WARNING: If any changes have been made in the
Map.py
file, it is necessary to copy the new map to the Cpp file and edit themapSize
parameter.
- This project was inspired by a friend of mine who wanted to prevent her laptop from falling asleep.
- The heart function equation used in this project is based on Slawomir Chodnicki's article: Plot the Shape of My Heart.
The following link contains a GeoGebra model that shows the heart equation and the points that travel on it with an established step: Heart Equation GeoGebra Model
The mouse in this project travels to the next points using a similar schematic.
This project is licensed under the MIT License. See the LICENSE file for details.
Created by @niewiaro
For any inquiries, please contact me at [email protected].