Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
public:crocs:arduino [2014-10-29 13:03] – [How to continue] lnemecpublic:openlab:autumn2014:arduino [2015-02-10 20:18] – images moved to openlab namespace lnemec
Line 24: Line 24:
  
 ===== Arduino Theory ===== ===== Arduino Theory =====
-{{ :public:crocs:arduino:arduinos.png?direct&500}} + 
-Arduinos come in many different flavours, from basic UNO to MEGA, or specialized one's, for example arduino robot. Also there are many shields, which can add specific functionality to your arduino, for example GSM of WIFI shields. These become usefull, when you are building a diet control machine, that will publish tweet every time you open door to your fridge. Also there is wide range of sensors, so you can measure almost everything, from light and humidity to methane concentration.+{{ :public:openlab:arduinos.png?direct&500}} 
 + 
 +==== Arduino Ecosystem ==== 
 + 
 +Arduino is phenomenon of last few years, quickly gaining popularity in many fileds. It originated somewhere in DIY community as easily managable microcontroller with Open-Source designthat was accesible to everyone. With this huge succes, family of official Arduino board quickly grew, as well as all other products, that were somehow Arduino related.  
 + 
 +Today There is huge selection of boards, starting from basic UNO, litle bit more advanced Leonardo, up to Arduino MEGA. On the other sideif you are interested in smaller sizes, there is Arduino micro, mini and nano, some that small, that there is no space for usb connectivity. Also, if you want to keep up with latest developement, you can try out Arduino Yún or soon comming Arduino Tre. There is also market for special purpose microcontrolers, like wearable electronics, which can be designed using Arduino LillyPad and conductive thread.  
 + 
 +Also open source design of Arduino is by many viewed as perfect point to start with own modifications, for example Jeenodes - Arduino based WSN modules. Also there is wide range of unofficial boards, that just take open source design, and sell it under different name with cheaper price (Funduino, Robotino etc. usually called Arduino compatible HW) 
 + 
 +Concerning accesoris, there are many shields, which can add specific functionality to your arduino, for example GSM of WIFI shields. These become usefull, when you are building a diet control machine, that will publish tweet every time you open door to your fridge. Also there is wide range of sensors, so you can measure almost everything, from light and humidity to methane concentration.
  
 ==== How to connect everything together ==== ==== How to connect everything together ====
Line 102: Line 112:
 <note warning>LEDs are not capable of handling arduino's 5V power, so resistor is required. Usually one which has 220Ω is used, but in this case it is not necessary to be exact, so you can use 200Ω or 300Ω as well and it will slightly affect brightness of LED, but nothing more. Generally more resistance does no harm, less resistance could burn the LED.</note> <note warning>LEDs are not capable of handling arduino's 5V power, so resistor is required. Usually one which has 220Ω is used, but in this case it is not necessary to be exact, so you can use 200Ω or 300Ω as well and it will slightly affect brightness of LED, but nothing more. Generally more resistance does no harm, less resistance could burn the LED.</note>
  
-{{ :public:crocs:arduino:led_blink.png?direct&700 |}} +{{ :public:openlab:led_blink.png?direct&700 |}}
 === Sensors, Analog input and Serial monitor === === Sensors, Analog input and Serial monitor ===
  
Line 134: Line 143:
 </code> </code>
  
-{{ :public:crocs:arduino:arduino_analog.png?direct&700 |}} +{{ :public:openlab:arduino_analog.png?direct&700 |}}
 <note important>Image shows two possible options, connected to pins A0 and A1, code shows reading input only from A0.</note> <note important>Image shows two possible options, connected to pins A0 and A1, code shows reading input only from A0.</note>
  
Line 170: Line 178:
    * GM electronics - gme.cz, overpriced Arduinos, but nice for small parts like LEDs, based in Brno, so ideal if you are missing just one part to complete project    * GM electronics - gme.cz, overpriced Arduinos, but nice for small parts like LEDs, based in Brno, so ideal if you are missing just one part to complete project
    * dealExreme.com - dx.com, china based, cheap, not original Arduinos, but Funduinos etc. (so called Arduino compatible parts), takes about 4 weeks to arrive, ideal for stocking up on parts of budget buys of boards    * dealExreme.com - dx.com, china based, cheap, not original Arduinos, but Funduinos etc. (so called Arduino compatible parts), takes about 4 weeks to arrive, ideal for stocking up on parts of budget buys of boards
 +
 +===== JeeNodes =====
 +
 +Jeenodes are special purpose boards (Arduino based) for WSN networks. Because of these facts, there is limited number of pins, and some other limitations, but for our cause they will be more than sufficient and only few changes has to be made. 
 +
 +First connections, following image shows how to connect JeeNode, LED and resistor together, especially which ports to use, since they are not as nicely labelled as other Arduino boards. 
 +
 +{{ :public:openlab:jeenode_led.png?direct&500|}}
 +
 +And now the other part, small change in source code:
 +
 +<code C>
 +//pin placement is changed to 4
 +int ledPin = 4; 
 +
 +void setup() {
 +  pinMode(ledPin, OUTPUT);
 +}
 +
 +void loop() {  
 +  digitalWrite(ledPin, HIGH);  
 +  delay(1000);              
 +  digitalWrite(ledPin, LOW);   
 +  delay(1000);              
 +}
 +</code>
 +
 +Other projects are changed acordingly.
 +
 +
 +