Upload
aubrey-allen
View
40
Download
2
Tags:
Embed Size (px)
DESCRIPTION
Blinkie – How you do that. Dwayne: [email protected] Dale: [email protected]. New This Year!. 4 New Kits Star (mono, bi-color or RGB) 8x8 RGB Matrix 5 RBG (updated design of 4RGB) CR2032 battery, thicker trace, pads for 10mm LEDs, 1 more LED. 8x16 (updated design) - PowerPoint PPT Presentation
Citation preview
Blinkie – How you do thatMusecon 2014
1
Blinkie – How you do that
Dwayne: [email protected]
Dale: [email protected]
Blinkie – How you do thatMusecon 2014
2
New This Year!
• 4 New Kits– Star (mono, bi-color or RGB)– 8x8 RGB Matrix– 5 RBG (updated design of 4RGB)
• CR2032 battery, thicker trace, pads for 10mm LEDs, 1 more LED.
– 8x16 (updated design)• CR2032 battery, removed IR communications,
added USB interface.
Blinkie – How you do thatMusecon 2014
3
Software – Pic ASM
• Using on 12F and 16F chips• Main program
– 7000 lines
• Patterns– 3800 lines
• Covers lots different blinkies!
Covers all the Blinkies except
•5x7 Badge
•4x4 Square
•4x4x4 Cube
•8x8 RGB Matrix
•New 8x16 Matrix
Blinkie – How you do thatMusecon 2014
4
Software – 18F line• Used by 4x4 Square, 4x4x4 Cube, 8x8 Matrix and 8x16
matrix• Used “WFF” by Simon Inns for base
– http://www.waitingforfriday.com/index.php/Building_a_PIC18F_USB_device
• MicroChips C18 compiler and USB library• LED driver interrupt is written in assembly. Dwayne’s
assembly is over 100 times more efficient.• Microsoft C# for PC side, using Visual C3 2010 Express.
Simon’s code is a
great start For simple
USB I/O projects
Blinkie – How you do thatMusecon 2014
5
Where is the source code?
www.2dkits.com
• “Build the kit” Instructions
• Source code
• Complier Listing
• Hex file
• Microchip Data Sheets
• Schematic
Blinkie – How you do thatMusecon 2014
6
Pic Chip 8 pins
12F683 12F1822 16F18313
Program Memory 2,048 3,584 3,584
Ram 128x8 128x8 256x8
EEProm 256 256 256
I/O 6 6 6
CPU speed 8MHz 32MHz 32MHz
Cost Q100 $1.12 $0.91 $0.69
Blinkie – How you do thatMusecon 2014
7
Pic Chip 14 pins
16F688 16F1824 16F18324 16F1454
Program Memory
4,096x13 7,168x13 7,168x13 8,192x13
Ram 256x8 256x8 512x8 1,024x8
EEProm 256 256 256 0
I/O 12 12 12 11
CPU speed 8MHz 32MHz 32MHz 48MHz
USB
Cost Q100 $1.32 $1.08 $0.86 $1.04
Blinkie – How you do thatMusecon 2014
8
Pic Chip 28 pins
16F886 16F1936 16F1938 18F2550 18F25K50
Program Mem 8,192 14,336 16,384 32,768 32,768
Ram 368x8 512x8 1,024x8 2048x8 2048x8
EEProm 256 256 256 256 256
I/O 24 25 25 23 25
CPU speed 8MHz 32MHz 32MHz 48MHz 48MHz
USB USB
Cost $1.94 $1.68 $1.76 $4.20 $2.21
Blinkie – How you do thatMusecon 2014
9
Have you looked at xxxx
Texas Instruments MSP430?
• They offer a start kit for $10
• Higher level CPU then PICs, easier to program, better support for “C”.
• Operate at 1.8-3.6 volts, hard to driver Blue LEDs.
• They have 14 and 20 pin DIP versions. Pic has 8, 14, 18, 20, 28, 40, 64
Blinkie – How you do thatMusecon 2014
10
Have you looked at xxxx
PIC 32 bit line?
• Looks like a great chip!
• Saw some cheap pre-made boards using it. (Solution looking for a problem)
• See 8 have been release in SPDIP package.
• Not pin compatible with 18F line.
Blinkie – How you do thatMusecon 2014
11
http://www.microchip.com
Under:Products-> PICmicro Microcontrollers
• Chip/CPU info data sheets
• MPLAB IDE– Compiler– Simulator/Debugger– Editor
• MPLAB X– Xc compiler
Blinkie – How you do thatMusecon 2014
12
Blinkie – How you do thatMusecon 2014
13
Pic Programmer
• PicKit3 from Microchip $45
• $10 to $20 – Zif socket from ebay
Not hard to find 20% off
Coupons for microchip
development tools
Blinkie – How you do thatMusecon 2014
14
Circuit Board Layout• Eagle Cad http://www.cadsoft.de/
Layout / Schematic / Autorouter
Non-Profit 4 x 3.2 inches 2 layers $0
Freeminum 4 x 3.2 inches 4 layers $0 60-day timed version
Light Edition 4 x 3.2 inches 2 layers $69
Hobbyist 6.4 x 4 inches 4 layers $169
Standard 6.4 x 4 inches 4 layers $820
Professional 64 x 64 inches 255 layers $1640
Circuit Board Layout
• Avoid “Express PCB” and “Pad2Pad”. They are using proprietary formats that other board makers can not work with.
• You want something that generates Gerber RS-274X and NC Drill files.
• Open source is getting better– PCB– FreePCB– KiCAD
Blinkie – How you do thatMusecon 2014
15
Avoid the “Free” circuit board
layout software “ro
ach hotel”.
Your data can checkin but
never checkout.
AutoRouting Software
• Eaglecad– Quick (minutes)– Lots of options, diagonal options
• www.FreeRouting.net– Java Based– Sledge Hammer, multi-pass, hours….
Using FreeRoute to optimize the via’s out.
Blinkie – How you do thatMusecon 2014
16
Blinkie – How you do thatMusecon 2014
17
6 Bi-LED (& Badge)
Blinkie – How you do thatMusecon 2014
18
3x3 matrix
Blinkie – How you do thatMusecon 2014
19
4 RBG
Blinkie – How you do thatMusecon 2014
20
19 LED Stick
Blinkie – How you do thatMusecon 2014
21
5x7 matrix
Blinkie – How you do thatMusecon 2014
22
8x16 matrix To read get pdffrom website!
New 8x16 matrix
Blinkie – How you do thatMusecon 2014
23
To read get pdffrom website!
8 bit
SPI bus
4x4x4 Cube (4x4 Square)
8x8 matrix
Blinkie – How you do thatMusecon 2014
24
PIC
LED Driver
8 bit 8 bit
Sou
rce
Driv
er
8 bit
8 bit
8x24 LED array
US
B
PC
LED Driver LED Driver
Blinkie – How you do thatMusecon 2014
25
8x8 RGB matrix
To read get pdffrom website!
4x4x4 uses samedriver design
Board in Eagle cad
Blinkie – How you do thatMusecon 2014
26
Blinkie – How you do thatMusecon 2014
27
Sample Board Cost 4in x 4in
OSH Park• $2.50 sq inch• multiples of 3
Seeed Studio (5 boards)• ~2 in x 2 in $10• ~2 in x 4 in $24• ~4 in x 4 in $21• ~4 in x 6 in $56•~ 6 in x 6 in $80
Seeed uses CM 5cm = 1.97in
Blinkie – How you do thatMusecon 2014
28
Board Cost – Hockey stick
Blinkie – How you do thatMusecon 2014
29
Board Cost – Zoom in
Blinkie – How you do thatMusecon 2014
30
Sample 8pin socket cost
Goldmine 1 $0.2010 $0.15
100 $0.11
Circuit Specialists 1 $0.1010 $0.08
100 $0.051000 $0.04
Digikey 1 $0.1310 $0.10
100 $0.08500 $0.07
1000 $0.075000 $0.06
Blinkie – How you do thatMusecon 2014
31
Part Cost – Hockey stick
$0.00
$0.05
$0.10
$0.15
$0.20
$0.25
0 100 200 300 400 500 600 700 800 900 1000 1100
Series1
Series2
Series3
Blinkie – How you do thatMusecon 2014
32
Price problem
• Shopping around can save.
• Buying bulk can save up.
• Surplus is great, but might not get it again.– Never see the same part– Never see the same price
• Shipping overhead has to be factored
• Ebay
• AliExpress
Blinkie – How you do thatMusecon 2014
33
Purple UV leds
Blinkie – How you do thatMusecon 2014
34
Color Freqwavelength
interval700–635 nm 635–590 nm 590–560 nm 560–490 nm 490–450 nm450–400 nm
Ultraviolet Along waveblack light UVA 400–315 nm Near NUV 400–300 nmUltraviolet Bmedium wave UVB 315–280 nm Middle MUV 300–200 nmUltraviolet Cshort wavegermicidal UVC 280–100 nm Far FUV 200–122 nm Vacuum VUV 200–100 nm
Extreme EUV 121-10 nm Low LUV 100–88 nmSuper SUV 150-10 nm
yellowgreenblueviolet
color
redorange
190 nm can be called: Ultraviolet C, short wave, Germicidal, Far, Vacuum
Hey look at allthe tla’s for UV!
Blinkie – How you do thatMusecon 2014
35
Is UV dangerous? (Short)
• Your Iris does not adjust for UV light. Dark room with bright UV bad.
• UV damages DNA.
Blinkie – How you do thatMusecon 2014
36
Is UV dangerous? (Long)• High intensities of UVB light are hazardous to the
eyes, and exposure can cause welder's flash (photokeratitis or arc eye) and may lead to cataracts, pterygium, and pinguecula formation.
• UVA, UVB, and UVC can all damage collagen fibers and, therefore, accelerate aging of the skin. Both UVA and UVB destroy vitamin A in skin, which may cause further damage. UVA can contribute to skin cancer via indirect DNA damage (free radicals and reactive oxygen species). It penetrates deeply but it does not cause sunburn.
Blinkie – How you do thatMusecon 2014
37
Common Purple/UV freq
• 400~405
• 395~405
• 390~395
• 395~400
wavelength interval
700–635 nm 635–590 nm 590–560 nm 560–490 nm 490–450 nm450–400 nm
Ultraviolet Along waveblack light UVA 400–315 nmUltraviolet Bmedium wave UVB 315–280 nmUltraviolet Cshort wavegermicidal UVC 280–100 nm
yellowgreenblueviolet
color
redorange
Freq some LED specs
Show UV LEDs
Operating at
Blinkie – How you do thatMusecon 2014
38
Problems with LED specs
Blinkie – How you do thatMusecon 2014
39
Bad Specs... Example #1
This wave length is Red/Orange
Package of 500PCS 5mm Purple/UV 3000 mcd LEDsSpecifications:• Material: InGaN • Emitting Colour: purple/violet• Lens Type: water clear • Reverse Voltage: 5.0 V [ 1/4W,470ohm resistor is needed ]• DC Forward Voltage: Typical: 1.9 V Max: 2.3 V• Wave Length: 625-635nm • Luminous Intensity MCD: Typ: 3,000 mcd • DC Forward Current: 20mA• Viewing Angle: 12±5degree• Lead Soldering Temp: 260oC for 5 seconds• Intensely Bright
Ah, what?
Resistor normally to
Limit CD forward current
InGaN norm is2.8 – 4.0 volt
Blinkie – How you do thatMusecon 2014
40
Bad Specs... Example #2a
Blinkie – How you do thatMusecon 2014
41
Bad Specs... Example #2bwavelength
interval700–635 nm 635–590 nm 590–560 nm 560–490 nm 490–450 nm450–400 nm
yellowgreenblueviolet
color
redorange
Reds a littleOrange
Purple isGreen to Blue
Blinkie – How you do thatMusecon 2014
42