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 17:44] – Arduino Ecosystem 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}} 
  
 +{{ :public:openlab:arduinos.png?direct&500}}
  
 ==== Arduino Ecosystem ==== ==== Arduino Ecosystem ====
Line 112: 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 144: 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 180: 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.
 +
 +
 +