LED Badge

LED Radiation Badge


One of the themes of my haunted house was an alien invasion, I wanted to make some interesting badges we could wear. This one is a simulated radiation detector, with an led bar graph that counts up and resets, Looking like there is a rise in radiation. I happened to have access to a card printer so I designed and printed a few cards to try out.

I used a PIC18F2550 micro controller because it has enough outputs to control the LEDs I want, It is easily programmed in basic and has a small foot print, it can also be run on 3 volts. All you have to do is connect the output pins of your micro controller to the positive pins of the LEDs of the segment graph. I wanted the smallest parts count possible for this project, and with only 5 parts making up the circuit it works well. The card is still almost flat and can worn with out a problem. The 10k pull-up resistor is placed directly on top of the chip and solder directly to the pins, and the pic chip is connected directly led chip. I glued on a single 2032 button cell holder on the card to power the lights and the chip.

To wire the lights up, you connect the negative side all together, Each of the lights positive pins will connect to one pin of the micro controller so that it can address each one individually.

I used swordfish compiler to program the chip, because I like coding in basic. The program is very simple and is designed to turn the lights on and off.

CODE:

This is the code that I used to control the Badge, all it does it set up the pins on the micro controller and then turns them on and off in which ever order it is programmed in.

Device = 18F2550
Clock = 8
Config FOSC = INTOSCIO_EC

Include “utils.bas”

Dim LED1 As PORTB.7
Dim LED2 As PORTB.6
Dim LED3 As PORTB.5
Dim LED4 As PORTB.4
Dim LED5 As PORTB.3
Dim LED6 As PORTB.2
Dim LED7 As PORTB.1
Dim LED8 As PORTB.0

// Start Of Program…
OSCCON = %01111111 // Sets up the internal oscillator
SetAllDigital // Make all Pins digital I/O’s
// Make the LED pin an output and Low(LED1)
Low(LED2)
Low(LED3)
Low(LED4)
Low(LED5)
Low(LED6)
Low(LED7)
Low(LED8)

While True
LED1 = 1
DelayMS(200)
LED1 = 0
DelayMS(200)
LED1 = 1
DelayMS(200)
LED1 = 0
DelayMS(200)
LED1 = 1
DelayMS(200)
LED1 = 0
DelayMS(200)
LED1 = 1
DelayMS(200)
LED1 = 0
DelayMS(200)
LED1 = 1
DelayMS(200)
LED1 = 0
DelayMS(200)
LED1 = 1
DelayMS(600)
LED2 = 1
DelayMS(600)
LED3 = 1
DelayMS(600)
LED4 = 1
DelayMS(600)
LED5 = 1
DelayMS(600)
LED6 = 1
DelayMS(600)
LED7 = 1
DelayMS(600)
LED8 = 1
DelayMS(600)
LED8 = 0
DelayMS(100)
LED8 = 1
DelayMS(100)
LED8 = 0
DelayMS(100)
LED8 = 1
DelayMS(100)
LED8 = 0
DelayMS(100)
LED8 = 1
DelayMS(100)
LED8 = 0
DelayMS(100)
LED8 = 1
DelayMS(100)
LED8 = 0
DelayMS(100)
PORTB = %00000000
Wend

What you will need:
1. Printed Badge of your choosing
2. PIC18F2550 (PICKIT 2 or other programmer)
3. 10 Segment LED Bar graph
4. 10 K Resistor
5. 2032 3 volt battery and holder
6. glue
7. Tools, Soldering iron, wire cutters
8. Wire

Finished:


Any questions or comments email: HauntHacker@Outlook.com

togel deposit dana klik88 klik88s tok99toto Link alternatif klik88slot togel bsi mahjong gacor slot zeus maxwin akun pro kamboja gacor slot gacor agen bola88 situs toto situs sv388 tok99toto klik88slots link alternatif klik88 situs slot thailand bp77slot bandar sbobet rtp klik88slot rtp tok99toto rtp k86sport rtp one8slot slot thailand super gacor slot gacor thailand slot zeus idn live casinod slot dana indonesia slot maxwin terpercaya slot demo pragmatic sv388 slot mahjong ways pg soft taruhan bola sbobet slot thailand 2023 slot gacor situs slot server thailand slot zeus gampang menang link slot mahjong gacor slot dana slot mahjong ways link slot pg soft slot gacor thailand link slot thailand Slot thailand gacor slot88 resmi login k86sport sv388 online 24jam akun slot thailand slot bsi slot gacor slot server luar slot deposit dana slot deposit bsi link slot gacor server thailand bo tok99toto k86sport slot gacor server thailand link slot gacor thailand link slot gacor link server thailand slot88 gacor klik88slot thailand slot thailand slot5000 situs slot 5000 bandar togel 4d akun pro kamboja fun77 situs slot88 slot thailand x500 slot thailand maxwin slot link slot gacor slot gacor maxwin tok99 klik88slots gacor thailand akun pro vip slot toto link klik88 data sdy slot88 gacor maxwin slot thailand gacor maxwin slot zeus online sv388 slot pragmatic play slot toto togel ngamentogel akun pro server thailand link alternatif tok99toto situs tok99toto situs k86sport link alternatif k86sport link alternatif k86sport resmi tok99toto gacor slot zeus gacor slot thailand terbaik slot maxwin mudah menang https://matano.desa.luwutimurkab.go.id/db/slot-joker123/ https://matano.desa.luwutimurkab.go.id/db/slot-demo-pragmatic/ judi pg soft slot server thailand super gacor link slot deposit dana Starlight Princess 1000 slot dana gacor ok88slot gacor slot macau akun pro slot thailand one8slot slot china 10 link slot thailand 12 link slot thailand slot mahjong terbaik data hk pragmatic play slot bandar toto resmi daftar slot maxwin slot gacor slot thailand super gacor gampang menang slot dana server thailand slot zeus gacor rtp tertinggi mahjong bet 200 slot deposit 10k situs slot ovo 5k pg soft resmi slot thailand super gacor hari ini sabung ayam sv388 slot pgsoft bet 200 mahjong 200 perak terbaru mas77toto slot gacor deposit dana bandar judi baccarat slot mahjong maxwin dewaslot mahjong slot777 resmi pragmatic bet 200 joker123 deposit 5000 slot depo 5k slot olympus 77 server thailand gacor slot-thailand super gacor slot mahjong ways 2 2023 link slot toto gacor link slot thailand 2023 pg soft bet 200 link slot gacor dana slot ovo anti rungkad akun pro thailand rtp slot gacor mudah maxwin slot ewallet dana gopay ovo linkaja slot live casino baccarat slot dana mudah maxwin slot thailand mudah menang terpercaya slot gacor hari ini slot server thailand super gacor 2023 slot depo ovo 10k slot mahjong gacor bet 200 situs togel terpercaya tok99toto deposit 5ribu situs slot88 gacor slot zeus maxwin bandar togel terpercaya slot88 server thailand ok88 slot gacor mudah maxwin deposit dana ok88slot ngacor slot thailand mudah maxwin fun77toto link fun77toto pg soft slot mahjong ways slot thailand gacor maxwin terbaik