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
en:iot-open:getting_familiar_with_your_hardware_rtu_itmo_sut:raspberrypi_rpi:drivers_and_driving [2019/03/12 20:57]
oleg
en:iot-open:getting_familiar_with_your_hardware_rtu_itmo_sut:raspberrypi_rpi:drivers_and_driving [2019/05/24 16:59] (current)
pczekalski
Line 27: Line 27:
 To calculate the resistance needed for a diode, this is what you have to do: To calculate the resistance needed for a diode, this is what you have to do:
   - Find out the required voltage for the diode to work UD; you can find it in the diodes parameters table.   - Find out the required voltage for the diode to work UD; you can find it in the diodes parameters table.
-  - Find out the amperage is necessary for the LED to shine ID; it can be found in the LEDs datasheet, but if you can’t find it, then 20 mA current is usually correct and safe choice.+  - Find out the amperage is necessary for the LED to shine ID; it can be found in the LEDs datasheet, but if you can’t find it, then 20 mA current is usually correct and safe choice.
   - Find out the combined voltage for the LED and resistor. Usually, it is the feeding voltage for the scheme.   - Find out the combined voltage for the LED and resistor. Usually, it is the feeding voltage for the scheme.
   - Insert all the values into this equation: **R=(U-U_D)/​I_D** ​   - Insert all the values into this equation: **R=(U-U_D)/​I_D** ​
Line 38: Line 38:
 </​figure>​ </​figure>​
  
-The example of blinking LED code:+The example of the blinking LED code:
 <code Python> <code Python>
 # Raspberry Pi Python sample code # Raspberry Pi Python sample code
Line 67: Line 67:
  
 <figure label> <figure label>
 +{{ :​en:​iot-open:​getting_familiar_with_your_hardware_rtu_itmo_sut:​arduino_and_arduino_101_intel_curie:​lcd.png?​200 | }}
 <​caption>​16x2 LCD display((https://​electronics.stackexchange.com/​questions/​2574/​arduino-hooking-up-lcd-without-pot))</​caption>​ <​caption>​16x2 LCD display((https://​electronics.stackexchange.com/​questions/​2574/​arduino-hooking-up-lcd-without-pot))</​caption>​
 </​figure>​ </​figure>​
  
 <figure label> <figure label>
-{{ :​en:​iot-open:​getting_familiar_with_your_hardware_rtu_itmo_sut:​raspberrypi_rpi:​pi_lcd_drv.png?​200 | title}}+{{ :​en:​iot-open:​getting_familiar_with_your_hardware_rtu_itmo_sut:​raspberrypi_rpi:​pi_lcd_drv.png?​200 | }}
 <​caption>​Raspberry Pi and LCD screen schematics</​caption>​ <​caption>​Raspberry Pi and LCD screen schematics</​caption>​
 </​figure>​ </​figure>​
Line 118: Line 119:
  
 ==Organic light-emitting diode display (OLED)== ==Organic light-emitting diode display (OLED)==
-//OLED// display uses electroluminescent materials that emit light when the current passes through these materials. The display consists of two electrodes and a layer of organic compound. OLED displays are thinner than LCDs, they have higher contrast, and they can be more energy efficient comparing to LCDs. OLED displays are commonly used in mobile devices like smartwatches,​ cell phones and they are replacing LCDs in other devices. Small OLED displays have an onboard control circuit that uses digital interfaces like I2C or SPI.+//OLED// display uses electroluminescent materials that emit light when the current passes through these materials. The display consists of two electrodes and a layer of an organic compound. OLED displays are thinner than LCDs, they have higher contrast, and they can be more energy efficient comparing to LCDs. OLED displays are commonly used in mobile devices like smartwatches,​ cell phones and they are replacing LCDs in other devices. Small OLED displays have an onboard control circuit that uses digital interfaces like I2C or SPI.
  
 <figure label> <figure label>
Line 340: Line 341:
 Solenoids are devices that use electromagnets to pull or push iron or steel core. They are used as linear actuators for locking mechanisms indoors, pneumatic and hydraulic valves and in-car starters. Solenoids are devices that use electromagnets to pull or push iron or steel core. They are used as linear actuators for locking mechanisms indoors, pneumatic and hydraulic valves and in-car starters.
  
-Solenoids and relays both use electromagnets and connecting them to Arduino is very similar. Coils need a lot of power, and they are usually connected to the power source of the circuit. Turning the power of the coil off makes the electromagnetic field to collapse and creates very high voltage. For the semiconductor devices protection, a shunt diode is used to channel the overvoltage. For the extra protection, optoisolator can be used.+Solenoids and relays both use electromagnets and connecting them to Arduino is very similar. Coils need a lot of power, and they are usually connected to the power source of the circuit. Turning the power of the coil off makes the electromagnetic field to collapse and creates very high voltage. For the semiconductor devices protection, a shunt diode is used to channel the overvoltage. For extra protection, optoisolator can be used.
  
 <figure label> <figure label>
en/iot-open/getting_familiar_with_your_hardware_rtu_itmo_sut/raspberrypi_rpi/drivers_and_driving.1552417072.txt.gz · Last modified: 2019/03/12 20:57 by oleg
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0