Saturday 26 September 2015

Basic Electronics and Arduino Tutorials

Ohm's Law - The basis for all electronics and electrical calculations is Ohm's Law (I=V/R). If you remember this, you can figure out what size resistor to pair with an LED, how to control the speed of a motor, how to build a power supply, and more. It's that important. There are three main variables in electricity, (I) current (amps), (V) voltage (volts) and (R) resistance (ohms). There's also a 4th element, (P) power (watts). Ohm's Law says that if you know two variables, you can calculate the third. - Online Calculator

Power vs. Energy - DC Watts = volts * amps is important, especially in solar and battery calculations, and the time element, hours, is critical. A motor that draws 5 amps, is drawing 5 amps (power) as we speak. In one hour, it will have consumed 5 amp hours (ah)(energy), in two hours it will have consumed 10 ah. When multiplied by the voltage we get watt hours (wh). This (wh) is called Energy. Energy is what you get billed for by the Power company (kWh). Watts without time is called Power. Many people get this confused, and some websites deliberately muddy the waters to make their products sound better. If you see things like amps per hour, or watts per day, run away.

Not to confuse things too much, but in Alternating Current (AC), it's not quite this easy. It starts out the same, Watts = Volts * Amps, but we also have to divide the Power Factor. A resistive load, like a heater, has a power factor of 1, so 1200w / 120v = 10a / 1 = 10a is the same as the DC calculation. But a electric motor, computer or fluorescent light may have a power factor of .5, so 1200w / 120v = 10a / .5 = 20a. That's a much higher load, so wires and generating capacity have to be increased. We often use VA for some calculations instead of watts. You'll see transformers rated in VA, as the load power factor isn't known by the manufacturer.

Wire Sizing Calculator - Enter the voltage, number of amps, and the distance you need to run, experiment with different wire sizes until you get a 3% or less voltage drop. It's at the bottom of the page


Soldering
Basic Soldering Guide (UK Centric)
Soldering 101
Sparkfun - How to solder

Basic Electronics
http://www.electronics-tutorials.com/basics/basic-electronics.htm
http://www.abcofelectronics.com/


Arduino
I have gone through many online Arduino tutorials and video's, but some of the best I've run across are the ones at Adafruit. They explain what electronics components you will need, how to connect them, and how to write the code to use them, in a simple to understand and building block style. Basic electronics theory and programming theory is explained along with practical examples. Each tutorial builds on what you learned previously.

More Arduino tutorials and projects can be found at:
Adafruit
Sparkfun, Inventors Guide pdf
Hacktronics
Arduino.cc
Mindkits
arduino.nu (dutch)
arduino programmeer manual (dutch pdf)
domoticX knowledge centre (dutch)
arduinotronics.blogspot.nl/
instructables - arduino channel
open-electronics

Online webshops for electronics:
Tinytronics
Radio Centrum, Utrecht
SOS solutions (RPi)
Mouser electronics
Conrad
Chinese Webshops,  AliExpress.nl

Wednesday 9 September 2015

Arduino Parts

Arduino Uno R3 starterskit:

AliExpress: €4,99
1x Uno R3 compatable CH340
1x USB cable
1x Male to male Dupont cable 20 pin
1x Breadboard 400 holes
15x LED red, green, yellow
10x Resistor 220 Ohm
10x Resistor 1K
10x Resistor 10K
10x Resistor 100K
2x Photoresistor GL5516
6x Button round, red white blue
1x Connector to 9V battery
4x 40-Pin 2.54 mm 
pitch
+ ordered separately: 4x Temperature sensor DS18B20, 100 cm, rvs, waterproof, €0,99


Chinese Uno €3,60                    Arduino Uno €11,50:


Temp. sensor DS18B20
AliExpress: €0,99 pp





AliExpress: €2,54
Resistor starterkit:
7x30 Resistor 100r, 1K, 4,7K, 10K, 47K, 100K, 1M
4x Potentiometer 15mm, 2x10K, 2x100K
12x LED Green,Red,Yellow,White
6x Switch body 12*12 tact
9x Switch cap round - blue, red, white
6x Switch cap square - black, green
2x 40-Pin 2.54 mm pitch



Ordered from AliExpress:

Boards:  Uno R3 Starterskit €4,99;  Mega 2560 R3 (Arduino compatible) €5,53;  Uno R3 (Arduino compatible) €3,60 x3;  Nano R3 (CH340 USB driver - Arduino compatible) €1,78 x3;

Shields:  Ethernet shield W5100 €3,29;  Data Logging Shield €3,78;  Proto Shield (expansion board w. mini breadboard) €1,31 x6;  WiFi Shield CC3000 €14,24;

Break-out modules:  Micro SD-card reader module €0,65;  Bluetooth module HC-06 €2,72;  WIFI module ESP8266-01 €2,66;  RTC DS1307 €0,85;  RTC DS3231 €0,72;  Relaismodule 5V 2-channel €1,71;

Display:  LCD 20x4 blue screen i2C €3,29;  LCD 16x2 blue screen i2C €1,73; LCD 16x2 Keypad shield €2,38; Lcd-module tft 2,4" touchscreen €3,66;

Sensors:  DS18B20 temperature €0,99 x4;  DHT22 temperature/humidity sensor am2302 €3,11;  GY-302 Light Intensity module (bh1750 chip) €1,16;  Photosensitive module €0,53 x2;  Soil Moisture  Water Sensor €0,95 x2;  Ultrasonic sensor HC-SR04 €0,72 x3;  Water Level float switch €1,29;  Water Level Sensor Module €0,37 x2;  Raindrops Detection Sensor Module €0,69 x2;  Laser sensor module 650nm 6mm 5v 5mw rood €1,42 x2;  BMP180 barometer €0,80 x2;  pH-module €15,77;  pH-probe €5,49;  PIR motion HC-SR501 €1,09 x2;

Motor/Servo:  Step Motor 5V 4-Phase + Driver Board ULN2003 €2,01;  Servo MG995 (koppel 15 kg.cm) €4,39;  Servo bracket Pan/Tilt Cam €0,80;  Micro Servo sg90 9g €1,05 x2;

Components:  Resistors, leds etc. starterskit €2,54; Resistor kit 600x (1/4w metalfilm) €2,45; Variable Resistor Kit 3296W €1,65;

Prototyping:  Adapter DC 9V 1A Power Supply €1,60;  Breadboard Power Supply 3.3V/5V €0,77; Power supply module dc/dc 3a lm2596s €0,59;  Dupont jumper wires 120x 20cm (m/m, m/f en f/f) €2,11;  Dupont Jumper wires 120x 10cm (m/m, m/f en f/f) €1,80;  Breadboard 400 holes €1,04;  Breadboard mini 170 holes €0,45 x5;  U-jumpers 140 st. €2,35;  Joystickmodule €0,73;

Soldering Iron 60W; adjustable with ceramic element €7,14;  Tips 5 pc; iron plated (Hakko 936/937 compatible) €3,18;  Multimeter Test Leads €1,91;

Casing: Plastic project box/clear cover, waterproof,
158x90x60 €4,58; 115x90x55 €3,29; 100x68x50 €2,41; 85x58x33 €1,76;


Ordered from TinyTronics:
Arduino Uno R3 €11,50; Jackpluggen 5,5/2.1 mm (male/fem/fem-terminal); Weerstanden: 150, 220, 4,7K, diodes: 1N4007, 1N4148;


Carbon film resistors 1/4 W:
◼︎◼︎◼︎      10 Ω   brown - black - black
◼︎◼︎◼︎      22 Ω   redred - black

◼︎◼︎◼︎      47 Ω   yellowviolet - black
◼︎◼︎◼︎    100 Ω   brown - black - brown
◼︎◼︎◼︎    220 Ω   red - red - brown
◼︎◼︎◼︎    470 Ω   yellow - violet brown
◼︎◼︎◼︎      1 kΩ   brown - black - red
◼︎◼︎◼︎   2.2 kΩ   red - red - red
◼︎◼︎◼︎   4.7 kΩ   yellow - violet - red
◼︎◼︎◼︎    10 kΩ   brown - black - orange

◼︎◼︎◼︎    22 kΩ   red - red - orange
◼︎◼︎◼︎    47 kΩ   yellow - violet - orange
◼︎◼︎◼︎   220 kΩ  red - red - 
yellow
◼︎◼︎◼︎   470 kΩ  
yellow - violet - yellow
◼︎◼︎◼︎   100 kΩ  brown - black - 
yellow
◼︎◼︎◼︎      1 MΩ  brown - black - green



Tuesday 1 September 2015

Groene Pesto maken

inspiratie: zelfpestomaken.nl

"Groene Pesto alla Genovese" - ingrediënten voor ca. 200 gram:
  0,5 teen  Knoflook
  1 snufje  Grof zeezout
25 gram   Basilicum (één plantje is circa 25 gr.)
15 gram   Pecorino kaas, geraspt
30 gram   Parmezaanse kaas, geraspt
10 gram   Pijnboompitten (geroosterd)
40 ml       Olijfolie (zacht van smaak)
1 el          Citroensap naar smaak toevoegen