This an example project that counts fibonacci numbers and dsiplays them on led indicator of arduino nano with n number of blinks. Each number is represented by number of blinks.
To build and upload this project to an Arduino Nano, you need the following:
-
Hardware:
- Arduino Nano
- LED connected to digital pin 13 (on-board LED in this case)
- USB cable to connect Arduino Nano to your computer
-
Software:
- Fedora Linux (or other Linux distributions with similar tools)
- AVR Toolchain (including
avr-gcc
andavrdude
):- Install using the following command:
sudo dnf install avr-gcc avr-binutils avr-libc avrdude
- Install using the following command:
- Make: A build automation tool (usually pre-installed on Linux systems).
-
Clone or Download the Repository:
- If using Git:
git clone https://github.com/St3plox/c_arduino_fibonacci.git cd https://github.com/St3plox/c_arduino_fibonacci.git
- If using Git:
-
Compile and run the Program:
- Ensure your Arduino Nano is connected to
/dev/ttyUSB0
. Adjust the port in the Makefile if necessary.make run
- Ensure your Arduino Nano is connected to
Some things may vary on different platforms, expecially output port and installing process of avr tools.