This shows you the differences between two versions of the page.
|
digispark:tutorials:probetashield [2014/06/24 04:11] netguy204 pin 1 goes low on button press |
digispark:tutorials:probetashield [2016/06/09 12:03] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== Digispark Pro Beta Shield Assembly====== | ||
| - | |||
| - | Parts included: | ||
| - | * One 33k resistor | ||
| - | * Two 10k resistors | ||
| - | * One Light Dependent Resistor (LDR) | ||
| - | * One 8x8 Red LED Matrix - Common Cathode | ||
| - | * One 10uf Capacitor | ||
| - | * One 0.1uf Capacitor | ||
| - | * One 24 Pin DIP Socket | ||
| - | * One MAX7219 LED Driver IC | ||
| - | * One PS2 style joystick | ||
| - | * One joystick cap | ||
| - | * One Beta Shield PCB | ||
| - | |||
| - | Assembly: | ||
| - | |||
| - | Insert resistors and capacitors as labeled - solder connection on the bottom. Trim excess leads. | ||
| - | |||
| - | Insert LDR in oval spot next to 10 k resistors. Solder connection on bottom. Trim excess leads. | ||
| - | |||
| - | Insert joystick into position - solder connections on bottom. It only fits one way. | ||
| - | |||
| - | Insert DIP socket and solder connection on bottom. | ||
| - | |||
| - | Insert 8x8 LED Matrix with the black writing on the edge of the Matrix facing downward to the bottom edge of the board - NOT facing the capacitors. Solder connections. | ||
| - | |||
| - | Insert MAX7219 into socket - with the key facing the right edge of the board - not facing the capacitors. | ||
| - | |||
| - | Snap joystick cap on to joystick. | ||
| - | |||
| - | Insert two 9 pin male headers from the bottom of the PCB and solder on the top - plug Digispark Pro with female headers into the bottom. | ||
| - | |||
| - | Use the LED control library to control the LED Matrix (included with the IDE addons) - use the following init string for proper pin settings: | ||
| - | <code> | ||
| - | /* | ||
| - | pin 10 is connected to the DataIn | ||
| - | pin 11 is connected to the CLK | ||
| - | pin 12 is connected to LOAD | ||
| - | We have only a single MAX72XX. | ||
| - | */ | ||
| - | LedControl lc=LedControl(10,11,12,1); | ||
| - | </code> | ||
| - | |||
| - | The joystick is an X and Y potentiometer which shows a voltage on A5 and A8 | ||
| - | |||
| - | The push button pulls Pin 1 low. | ||
| - | |||
| - | The LDR reports a voltage on A9 based on the light level. | ||
| - | |||
| - | The pins are written on the board itself for reference as well. | ||
| - | |||
| - | Assembled photo: | ||
| - | |||
| - | {{ :digispark:tutorials:6ef3983ff188369f9adc97bfb5326c4e_large.jpg?nolink |}} | ||
| - | |||
| - | |||