Arduino Tutorial #8:
MakerUno - Simple LED
In our earlier post, we have a look into the MakerUno. Today we shall look into programming the board. Basically, the concept is similar to Arduino Uno, the thing which is different is their built-in led, buzzer and push button. In our post today, we shall look into controlling the built-in led on the MakerUno board.
The onboard LEDs are connected to the digital pin starting from Pin 2 to Pin 13. To turn on these LEDs, it can be simply done by giving output high to each of the pins. For the first part, we shall make a simple led blinking program, followed by more complicated controlling methods.
Simple Led Blinking
The onboard LEDs are connected to the digital pin starting from Pin 2 to Pin 13. To turn on these LEDs, it can be simply done by giving output high to each of the pins. For the first part, we shall make a simple led blinking program, followed by more complicated controlling methods.
Simple Led Blinking
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | /* Blink Turns an LED on for one second, then off for one second, repeatedly. Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to the correct LED pin independent of which board is used. If you want to know what pin the on-board LED is connected to on your Arduino model, check the Technical Specs of your board at: https://www.arduino.cc/en/Main/Products modified 8 May 2014 by Scott Fitzgerald modified 2 Sep 2016 by Arturo Guadalupi modified 8 Sep 2016 by Colby Newman This example code is in the public domain. http://www.arduino.cc/en/Tutorial/Blink */ // the setup function runs once when you press reset or power the board void setup() { // initialize digital pin LED_BUILTIN as an output. pinMode(LED_BUILTIN, OUTPUT); } // the loop function runs over and over again forever void loop() { digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level) delay(1000); // wait for a second digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second } |
Knight Rider
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | /* Knight Rider By Electrosoft * -------------- * * @author: Hussien * @hardware: Maker Uno */ int pinArray[] = {2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13}; int count = 0; int timer = 30; void setup(){ for (count=0;count<12;count++) { pinMode(pinArray[count], OUTPUT); } } void loop() { for (count=0;count<11;count++) { digitalWrite(pinArray[count], HIGH); delay(timer); digitalWrite(pinArray[count + 1], HIGH); delay(timer); digitalWrite(pinArray[count], LOW); delay(timer*2); } for (count=11;count>0;count--) { digitalWrite(pinArray[count], HIGH); delay(timer); digitalWrite(pinArray[count - 1], HIGH); delay(timer); digitalWrite(pinArray[count], LOW); delay(timer*2); } } |
And below is the video tutorial of our post for today. Thank you.
Thank you.
The information is very useful. The tutorial that you have made is easy to understand. Thank you. Signage Chennai Metal Letters Chennai
ReplyDeleteLayar21
ReplyDeletenonton sub indo
poker online
delimaqq
delimapoker
ria4d
ria4d
halototo
http://halototo.online
kapaldomino
papadomino
daftar togel
halototo wap
dominohalo
http://dominohalo.space
165.22.52.72
Amazing work guys, So when you need any converter for files then maybe this will surely help;
ReplyDeleteSolo File Converter
Because that converter has convert one file to another like those;
ReplyDeleteOdg to Ppt
Mp4 to Jpeg
Azw3 to Mobi
M4p to M4a
3gp to mp4
Interesting topic for a blog. I have been searching the Internet for fun and came upon your website. Fabulous post. Thanks a ton for sharing your knowledge! It is great to see that some people still put in an effort into managing their websites. I'll be sure to check back again real soon.
ReplyDeletepoker qq
I am happy to find this post very useful for me, as it contains lot of information. I always prefer to read the quality content and this thing I found in you post. Thanks for sharing.
ReplyDelete파워볼중계