Today for Robot Club I was able to control a 7-segment LED device. I hooked up all of the pins on the 7-segment LED to the corresponding pins on the arduino, and started to write code. I wrote code to create different functions that are named after the numbers that is being displayed. Some difficulties I encountered where: not turning the LED pins off in the code, not declaring the pins as an output. After finding solutions to these problems, I was able to create a counter for the 7-segment display.
No comments:
Post a Comment