User Tools

Site Tools


oak:tutorials:levelshift

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
oak:tutorials:levelshift [2016/02/04 14:38]
digistump [Parts:]
oak:tutorials:levelshift [2016/03/21 16:17] (current)
digistump [Using the Oak Level Shifter:]
Line 1: Line 1:
-**//THIS TUTORIAL HAS NOT YET BEEN REVIEWED, PLEASE DO NOT USE UNTIL IT HAS//** 
  
 ====== Oak Level Shifter Shield Kit Tutorial ====== ====== Oak Level Shifter Shield Kit Tutorial ======
Line 14: Line 13:
    * 5V output with pinout optimized for a WS2811/2812 LED strip    * 5V output with pinout optimized for a WS2811/2812 LED strip
    * 5V input to the ADC pin    * 5V input to the ADC pin
 +
  
 This is an unassembled kit and requires basic soldering skills. This shield is designed for use with the Digistump Oak development board (not included). Make sure all parts listed below have been provided before proceeding. This is an unassembled kit and requires basic soldering skills. This shield is designed for use with the Digistump Oak development board (not included). Make sure all parts listed below have been provided before proceeding.
Line 20: Line 20:
 [[https://​s3.amazonaws.com/​digispark/​images/​m/​oak-level-shifter-shield-1.jpg|{{https://​s3.amazonaws.com/​digispark/​images/​t/​oak-level-shifter-shield-1.jpg}}]] [[https://​s3.amazonaws.com/​digispark/​images/​m/​oak-level-shifter-shield-1.jpg|{{https://​s3.amazonaws.com/​digispark/​images/​t/​oak-level-shifter-shield-1.jpg}}]]
 [[https://​s3.amazonaws.com/​digispark/​images/​m/​oak-level-shifter-shield-2.jpg|{{https://​s3.amazonaws.com/​digispark/​images/​t/​oak-level-shifter-shield-2.jpg}}]] [[https://​s3.amazonaws.com/​digispark/​images/​m/​oak-level-shifter-shield-2.jpg|{{https://​s3.amazonaws.com/​digispark/​images/​t/​oak-level-shifter-shield-2.jpg}}]]
- 
  
 ===== Parts: ===== ===== Parts: =====
Line 26: Line 25:
 ^ Part                        ^ Quantity ​         ^Identification^ ^ Part                        ^ Quantity ​         ^Identification^
 | Oak Level Shifter Shield PCB|1|CC-BY-SA 3.0 digistump.com | | Oak Level Shifter Shield PCB|1|CC-BY-SA 3.0 digistump.com |
-2x40pin ​male 0.1" pitch header (may be broken in transit)| 47 pins worth| |+1x40pin ​male 0.1" pitch header (may be broken in transit)| 47 pins worth| |
 | 20 Pin DIP IC socket| 1| | | 20 Pin DIP IC socket| 1| |
 | Level Shifter IC| 1| SN74HCT245N| | Level Shifter IC| 1| SN74HCT245N|
Line 118: Line 117:
 Note topside placement of headers as indicated by the SPI 6 pin header. Note topside placement of headers as indicated by the SPI 6 pin header.
  
-**Step ​8:** From the remaining male headers if you have not already cut them to size, cut or snap the sizes that you intend to install. If you plan to install all of the top side headers this will require that you have one (1) 6 pin header (SPI), four (4) 3 pin headers (3 SERVO and 1 ADC), two (2) 4 pin headers (1 UART and 1 I2C). The short lead for each header should be inserted through the top of the PCB and soldered from the bottom. Again, solder one pin first, let the solder dry, check alignment, correct as needed, then solder the remaining pins. +**Step ​7:** From the remaining male headers if you have not already cut them to size, cut or snap the sizes that you intend to install. If you plan to install all of the top side headers this will require that you have one (1) 6 pin header (SPI), four (4) 3 pin headers (3 SERVO and 1 ADC), two (2) 4 pin headers (1 UART and 1 I2C). The short lead for each header should be inserted through the top of the PCB and soldered from the bottom. Again, solder one pin first, let the solder dry, check alignment, correct as needed, then solder the remaining pins. 
  
  
Line 124: Line 123:
 Topside header installation completed. Topside header installation completed.
  
-**Step ​9:** Carefully insert the level shifter IC making sure to match the notch orientation on the chip with the notch on the IC socket. You may have to gently bend the IC leads (as a group) to align them with the IC socket. This can be done by laying the IC on it's side and gently bending the leads as a group so that there are perpendicular to the case. Be carefully not to over bend the leads and make sure that all leads are properly aligned with the socket before inserting IC. Gently push the IC into the socket.+**Step ​8:** Carefully insert the level shifter IC making sure to match the notch orientation on the chip with the notch on the IC socket. You may have to gently bend the IC leads (as a group) to align them with the IC socket. This can be done by laying the IC on it's side and gently bending the leads as a group so that there are perpendicular to the case. Be carefully not to over bend the leads and make sure that all leads are properly aligned with the socket before inserting IC. Gently push the IC into the socket.
  
 [[https://​s3.amazonaws.com/​digispark/​images/​m/​oak-level-shifter-shield-22.jpg|{{https://​s3.amazonaws.com/​digispark/​images/​t/​oak-level-shifter-shield-22.jpg}}]][[https://​s3.amazonaws.com/​digispark/​images/​m/​oak-level-shifter-shield-23.jpg|{{https://​s3.amazonaws.com/​digispark/​images/​t/​oak-level-shifter-shield-23.jpg}}]] [[https://​s3.amazonaws.com/​digispark/​images/​m/​oak-level-shifter-shield-22.jpg|{{https://​s3.amazonaws.com/​digispark/​images/​t/​oak-level-shifter-shield-22.jpg}}]][[https://​s3.amazonaws.com/​digispark/​images/​m/​oak-level-shifter-shield-23.jpg|{{https://​s3.amazonaws.com/​digispark/​images/​t/​oak-level-shifter-shield-23.jpg}}]]
Line 133: Line 132:
 ===== Using the Oak Level Shifter: ===== ===== Using the Oak Level Shifter: =====
  
-//**Power Distribution: ​(Needs to be reviewed by Digistump, do not assume this is correct)**//+//**Power Distribution:​ **//
  
 When using the Oak Level Shifter shield you must power the Oak via the USB power input at 5V or use another 5V source connected to the VIN and GND on the 2 pin screw terminal of the level shifter shield. Make sure that you observe the correct polarity when using the screw terminal. When using the Oak Level Shifter shield you must power the Oak via the USB power input at 5V or use another 5V source connected to the VIN and GND on the 2 pin screw terminal of the level shifter shield. Make sure that you observe the correct polarity when using the screw terminal.
Line 141: Line 140:
 Whatever voltage is supplied to the Oak Level Shifter shield VIN is distributed (directly connected) to each of the Level Shifter shield pins labeled 5V. As such, all external devices connected to pins labeled 5V will receive the actual VIN supply voltage. Whatever voltage is supplied to the Oak Level Shifter shield VIN is distributed (directly connected) to each of the Level Shifter shield pins labeled 5V. As such, all external devices connected to pins labeled 5V will receive the actual VIN supply voltage.
  
-Oak regulates VIN supplied at either of the Oak's VIN pins for use by Oak, but will pass through VIN supplied at the Oak's VIN 4.5-12V tolerant pin to the Oak Level Shifter shield VIN pin. Therefore, the Oak's VIN pin if used to supply voltage to the Oak (not recommended when using the Oak Level Shifter shield) should be limited to recommended ratings for level shifter IC (5V). +Oak regulates VIN supplied at either of the Oak's VIN pins for use by Oak, but will pass through VIN supplied at the Oak's VIN 4.5-12V tolerant pin to the Oak Level Shifter shield VIN pin. Therefore, the Oak's VIN pin if used to supply voltage to the Oak (not recommended when using the Oak Level Shifter shield) should be limited to recommended ratings for level shifter IC (5V).
  
 +//**Pinout Correction for the P1 Servo Header:**//
  
 +The pins labeled GND and P1 for the center servo header on the level shifter are reversed. GND is actually P1 and P1 is actually GND. This only applies to the servo header that uses P1 for signal output.
 +{{ :​oak:​tutorials:​oak-level-shifter-shield-24.jpg?​direct&​300 |}}
  
 +//** Using with bi-directional sensors: **//
  
 +Since the level shifter IC used on this level shifter is not an automatic bi-directional level shifter, if you  you wish to use bi-directional sensors such as the popular OneWire DS18B20, you will need to use the I2C pins on the shield. SDA is P0 on the Oak, and SCL is P2. 
oak/tutorials/levelshift.1454625536.txt.gz · Last modified: 2016/02/04 14:38 by digistump