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.
http://sunapi386.ca/wordpress/reducing-equations
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 *