Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nervousnullptr/arduino-binarycounter
A simple demonstration of the binary system using an Arduino.
https://github.com/nervousnullptr/arduino-binarycounter
arduino arduino-boards binary-system education educational educational-project
Last synced: 10 days ago
JSON representation
A simple demonstration of the binary system using an Arduino.
- Host: GitHub
- URL: https://github.com/nervousnullptr/arduino-binarycounter
- Owner: NervousNullPtr
- Created: 2021-12-23T21:13:15.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-05T14:58:09.000Z (11 months ago)
- Last Synced: 2024-05-02T05:11:58.496Z (7 months ago)
- Topics: arduino, arduino-boards, binary-system, education, educational, educational-project
- Language: C
- Homepage:
- Size: 287 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
Binary Counting using Arduino and LEDs
=====This repository is a quick example on how the binary system works. It shows numbers from 0-255 using 8 LEDs.
Required Parts
=====
* **1** Arduino (With **8** outputs)
* **1** Breadboard
* **9** Wires
* **8** Resistors (220 Ω)Structure
=====
![Oops, a picture should be here.](./Layout.png)Code
=====
When finished with the building, open the `src/main.c` file and simply copy 'n paste it into your Arduino IDE. Next, hit `Ctrl+Shift+N` in your Arduino IDE and copy the source code from `include/types.h` into that file, and save it as `types.h`. Now upload it to your Arduino and that's it - everything done!Running on the Arduino
=====
After you've uploaded your freshly compiled program, the 8 LEDs should light up sequentially (250ms delay) and stay on for half a second. Now the LEDs will be turned off and the program starts counting with the `most significant bit` on the left from 0 to 255 until you stop it (It counts from right to left). Have fun!