bs-1-en
Differences
This shows you the differences between two versions of the page.
— | bs-1-en [2023/09/06 12:43] (current) – created - external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== BS-1 Universal Led Flasher ====== | ||
+ | [[: | ||
+ | |||
+ | ^^^^By Peter Giling^^^^ | ||
+ | |||
+ | Many items in the market give a rather poor method of Leds just going on and off.\\ | ||
+ | This very small unit is more than that.\\ | ||
+ | The ready made and available printed circuit measures only 27 x 17 mm.\\ | ||
+ | The double sided and through-hole metalized board contains a small microprocessor.\\ | ||
+ | This makes it possible to have a selection of different programs for various tasks.\\ | ||
+ | The firmware can be extended with more selections, if somebody comes up with a good suggestion.\\ | ||
+ | For now, there are 10 available programs.\\ | ||
+ | Program selection is made by installing a little jumper on board.\\ | ||
+ | The board also contains the necessary resistors to connect LEDs, so all you have to do is connecting LEDs and power, nothing more.\\ | ||
+ | The selected program will be remembered and start anytime you power up.\\ | ||
+ | Power can be from 9 to 16Vdc, and power consumption is extremely low.\\ | ||
+ | But you will be surprised about the quality of the light patterns it will give you!\\ | ||
+ | Professional made pcboard is available for € 1,-- (excl shipping).\\ | ||
+ | Send email to // | ||
+ | Also for any other question regarding this unit or MGV-loconet modules ask Peter.\\ | ||
+ | \\ | ||
+ | |||
+ | ===== Technical description ===== | ||
+ | |||
+ | The unit is build around a Microchip PIC12C675. | ||
+ | \\ | ||
+ | The program is written in PicSimulator IDE Basic, from www.oshonsoft.com | ||
+ | \\ | ||
+ | The supply is no more than a transistor and a Zener diode. | ||
+ | \\ | ||
+ | It is made in such a way, that swapping the connections of power does not harm anything. | ||
+ | \\ | ||
+ | The 5 connections for LEDs all have a resistor on board so LEDs can be connected directly. | ||
+ | \\ | ||
+ | For all LEDs there is only one common (-). | ||
+ | \\ | ||
+ | The connection marked #5 is used as input for programs 7 & 10 to activate the second function | ||
+ | \\ | ||
+ | In program 9 (dutch AKI railroad crossing) this enables the choice between 2 flashing red LEDs or 1 white slow flashing led. | ||
+ | \\ | ||
+ | In program 10 (german railroad crossing with barriers) Pin5 is used to activate the lights and barriers. Pin3 and 4 (and 6(-))can be used to connect MGV136 for powering barriers. | ||
+ | \\ | ||
+ | Program selection is done by putting on jumper and take it off again. | ||
+ | \\ | ||
+ | Each time the jumper is attached, the program will shift to the next one. For some programs (program 7..10) this might take a short time. | ||
+ | \\ | ||
+ | After removing the jumper, the selection is stored in internal EEPROM memory. | ||
+ | \\ | ||
+ | ===== Available programs ===== | ||
+ | ^ Description (up until now (sept 20, 2010) ^ Used LEDs 1st task ^ Used LEDs 2nd task ^ Used LEDs 3nd task ^ special remarks | ||
+ | | | | | | | | | ||
+ | | 1 | Nightrider | ||
+ | | 2 | 2 independent flashers for police cars | 1 and 2 | 3 and 4 | | use blue leds | | ||
+ | | 3 | 2 independent working turn light flashers | ||
+ | | 4 | High tower flashers | ||
+ | | 5 | Traffic blockade | ||
+ | | 6 | Normal flashers for dangerous road crossings | ||
+ | | 7 | Traffic lights (dutch pattern) | ||
+ | | 8 | Traffic lights (german pattern) | ||
+ | | 9 | Railroad crossing Dutch type (lights only) | 1 White | 2 Red | 3 Red | ||
+ | | 10 | Railroad crossing | ||
+ | | 11 | Welding flashes | ||
+ | |||
+ | ===== New features for BS-1 ===== | ||
+ | New developments are always possible, let your fantasy runnung free.\\ | ||
+ | All leds will be dimmed 'as real' | ||
+ | |||
+ | Read this {{: | ||
+ | All .hex files are in included{{: | ||
+ | |||
+ | |||
+ | ===== How to connect leds ===== | ||
+ | {{ : | ||
+ | ===== The real thing ===== | ||
+ | |||
+ | {{: | ||
+ | |||
+ | ===== The Hardware ===== | ||
+ | |{{: | ||
+ | |{{: | ||
+ | ^N.B. Self made pc-boards are not supported! ^ | ||
+ | \\ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | more questions? ask [[peter.giling@rocrail.net|Peter]] | ||
+ | |||
+ | ===== The Firmware ===== | ||
+ | {{: | ||
+ | \\ | ||
+ | |||
+ | |||
+ | ===== Partslist ===== | ||
+ | |||
+ | ^ Qty ^ Reference | ||
+ | | 5 | R1..5 | resistor 270 Ohm | | ||
+ | | 2 | R6,R7 | resistor 10 KOhm | | ||
+ | | 1 | D1 | Zener diode 5V1 400 mW | | ||
+ | | 1 | C1 | capacitor 100 nF | | ||
+ | | 1 | T1 | Transistor BC337-40 | ||
+ | | 1 | U1 | PIC12F675 DIL8 | | ||
+ | | 1 | Socket | ||
+ | | 1 | Jp1 | header 2 pins + jumper | ||
+ | | 1 | J1 | PSS254 / 2G | | ||
+ | | 1 | J2 | header 6 pins | | ||
+ | |||
+ | ===== Diode position ===== | ||
+ | {{: |