Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the twentyfifteen domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /var/www/sunapi386.ca/wordpress/wp-includes/functions.php on line 6121
Arduino – sunapi386's Blog

Arduino

Playing around with an Arduino today, programmed it to count down. Very simple, I know, but it is just introduction to the usage.
This article is not meant to be a tutorial. It is to remind myself of what I did.

The arduino programming IDE basically just C++ with a different namespace. And a little deviation. You don’t need things like #include , and don’t need a int main(int argc, char** argv) program.

Hardware

 

A flashy video here:

Planning out the connections:
Drawing1

After a while I just gave up and did it by hand. This drawing thing is really annoying, too many wires!!!

This is the PCB layout
pcb2The breadboard layout
breadboard2The schematic layout
schematic2

Source Code

Initializing the pins to be the corresponding letter on the seven segment display. See earlier post for diagram.

Circuit board that displays the digits of e


CodeDisplay

 

This stuff is quite fun, I will update this post later when I figure out more things to do with it.

Leave a Reply

Your email address will not be published. Required fields are marked *