This week I learnt about digital & analog input and output and my assignment is to assemble a simple application using those tech.

Joystick is a kind of variable resistor, but divide into two axis. So I decide to use joystick to control LEDs.

Pcomp0301

After read the output of this joystick, (both x and y axis are range from 0~1023) I divided the output into 8 directions. In parallel, I set 8 LEDs, so each direction could control 1 or 3 LEDs with the same direction.

Pcomp0303

Calculating interval.

Pcomp0302

And here is the video:

 

 

Leave a Reply

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