Tuesday, 24 May 2016

BBC micro:bit Pedestrian Crossing

I started this project by trying out the pre-written code that came with the IET Pedestrian Crossing resource. The aim is to use the BBC micro:bit to develop a prototype for a pedestrian crossing for a local secondary school.   


Parts List


You will need the following:
  • 1 x BBC micro:bit
  • 1 x Kitronik Prototyping System
  • 2 x Red LED’s
  • 2 x Green LED’s
  • 1 x Orange LED
  • 1 x Piezo Sounder
  • 1 x NPN Transistor
  • 1 x 2.2kΩ Resistor
  • 5 x Resistors suitable for your LED’s (I used 220Ω resistors)
  • 7 x MF Jumper wires
  • 3 x MM Jumper wires 


Stage 1 
First, I connected three LED’s to P0, P1 & P2 via series resistors.

Stage 1
























BBC micro:bit Edge Connector Breakout Board
Breadboard Connection
P0 pin
Red Traffic LED via 220Ω Resistor
P1 pin
Orange Traffic LED via 220Ω Resistor
P2 pin
Green Traffic LED via 220Ω Resistor
0V Pin
Breadboard negative rail
3V Pin
Breadboard positive rail



Stage 2

This worked well so I thought I would try adding two more LED’s via series resistors to ports (P8 & P12).   I modified the pre-written program so that the two additional LED’s would also be controlled.

Stage 2





















BBC micro:bit Edge Connector Breakout Board
Breadboard Connection
P0 pin
Red Traffic LED via 220Ω Resistor
P1 pin
Orange Traffic LED via 220Ω Resistor
P2 pin
Green Traffic LED via 220Ω Resistor
P8 pin
Green Pedestrian LED via 220Ω Resistor
P12 pin
Red Pedestrian LED via 220Ω Resistor
0V Pin
Breadboard negative rail
3V Pin
Breadboard positive rail


Stage 3

The final part of this project was to add a piezo sounder to simulate the crossing beeper.   I connected a piezo sounder to port (P16) via a driver transistor.  I modified the code once more to add this functionality. 

Stage 3









































BBC micro:bit Edge Connector Breakout Board
Breadboard Connection
P0 pin
Red Traffic LED via 220Ω Resistor
P1 pin
Orange Traffic LED via 220Ω Resistor
P2 pin
Green Traffic LED via 220Ω Resistor
P8 pin
Green Pedestrian LED via 220Ω Resistor
P12 pin
Red Pedestrian LED via 220Ω Resistor
P16 pin
2.2k Resistor for Transistor
0V Pin
Breadboard negative rail
3V Pin
Breadboard positive rail

Stage 4

I have added an illuminated external push button which is connected to the button A pin (P5),this lets you trigger or detect a button "A" click externally.   The LED inside the switch is connected to port (P13) via  series resistor.


Stage 4



















BBC micro:bit Edge Connector Breakout Board
Breadboard Connection
P0 pin
Red Traffic LED via 220Ω Resistor
P1 pin
Orange Traffic LED via 220Ω Resistor
P2 pin
Green Traffic LED via 220Ω Resistor
P8 pin
Green Pedestrian LED via 220Ω Resistor
P12 pin
Red Pedestrian LED via 220Ω Resistor
P16 pin
2.2k Resistor for Transistor
P5 pin
Button A – connected to an external  push switch
P13 pin
Pedestrian wait LED via 100Ω Resistor
0V Pin
Breadboard negative rail
3V Pin
Breadboard positive rail


Code

The code was originally written in Microsoft Touch Develop but this legacy editor is being discontinued so I have migrated the code to the new Microsoft MakeCode editor.  The code can now be found here.

Friday, 20 May 2016

Racal 836 Repair

Racal 836 


















I picked up an old Racal 836 32MHz Universal Counter-Timer (circa 1972) at a radio rally last year. The unit looked good, powered up and all the digits worked. However having carried out some of the preliminary tests as outlined in the technical manual the unit would not perform the self-check function.   

Top side showing the various plug-in assemblies




















Underside

















I found this thread on the UK Vintage Radio Repair and Restoration forum and posted a reply for some help, I also posted on the Yahoo Racal Dana group.   Various helpful things were suggested to check which I did. All of the supply rails were correct, the 1MHz frequency standard was running and I replaced several tantalum capacitors. I finally discovered that motherboard was plagued with dry joints and that there was a dry joint on the gating control board connector so the signal wasn't getting to the high speed decade counter board. Having re-soldered these dry joints all of the functions now work correctly.


Overall I'm very happy with the unit, it is beautifully made though it can still be a bit temperamental. Usually re-seating the plug-in modules fixes the problem.  I have recently acquired a OCXO 10MHz frequency standard to check my counter with, it seems to be pretty much in calibration still after all these years.

Thursday, 19 May 2016

RasPiO Pro Hat

I recently backed Alex Eames (@RasPiTV) Kickstarter campaign for a RasPiO Pro Hat which is a small add-on board for the Raspberry Pi and is designed to protect and put your GPIO ports in numerical order.   The Kickstarter campaign has been successfully funded so boards are starting to be shipped out, mine landed on the doormat the other day.  


The RasPiO®1 Pro Hat has the GPIO pins connected via a protection circuit to female headers but is also broken out to un-protected connections. There is a small breadboard for prototyping circuits.  The PCB is very nicely made and is complete with gold and white silkscreen text.






















I tried out my board using the included RGB LED and a simple GPIOZero Python script. There is well written manual which contains some structured experiments for the included components.


Overall I very impressed with this great little add-on for the Raspberry Pi,  if you want one for yourself then you can find out more on the RasPiO website

Tuesday, 26 April 2016

My First Electronic Kits

During a recent exploration of the loft I came across two of my electronics kits I was brought by my parents during my teens.

Salter Science Introduction to Electronics 


I was given this kit for Christmas or perhaps a Birthday during the late 80’s.  I remember spending many hours playing with it and trying most of the 25 fascinating experiments,   I liked the Radio and noise making projects the best.  The simple board consists of one single transistor, a couple of capacitors, resistors, diode, tuning capacitor and aerial coil complete with spring terminals to join the components together.



















Science Fair 200 in One Electronic Project lab (circa 1981, 1987)


Sometime later in the early 90’s I was given this kit for Christmas or perhaps as a Birthday present.   I spent many happy hours trying out some of the 200 projects, mostly LED or light projects.  I made the DC Meter lot as I didn't have a Multimeter.   The large board has a large selection of resistors, capacitors, LED’s, semiconductors and other miscellaneous components.   Again spring terminals are used to connect the components together.






















Vintage Science Fair Electronic Project Kits


I have recently acquired the following. 
  • 65 in One Electronic Project Kit (circa 1972)
  • 75 in One Electronic Project Kit (circa 1976)
  • 150 in One Electronic Project Kit (circa 1976)
  • 160 in One Electronic Project Kit (circa 1982)
These kits have a good selection of resistors, capacitors and germanium transistors on the early kits only the later kits had a single silicon transistor. The later kits included a 7 Segment display and some sort of integrated circuit.


























Saturday, 2 April 2016

Croc clip connector for the Raspberry Pi


Andrew Gale (@pocketmoneytron) from pocketmoneytronics recently sent me a couple of his brilliant croc clip connector boards for the Raspberry Pi he had made.

The board is very simple, well designed and has three large holes so you can easily connect crocodile clips to the board. GPIO pins 23, 24 and 25 have been brought out to the edge via a series resistor along with a ground connection so that LED's can be attached.

I used a simple Python script using the new GPIO Zero library to test out the board, which is really easy to use and the boards work well. Overall I am very impressed with this great project.

Croc clip Parts

Croc clip PCB Assembled


Traffic Lights 

Saturday, 12 September 2015

CamJam 12th September 2015

On Saturday 12th September I travelled up to Cambridge to attend another excellent CamJam.  I had a good look around the market place as well as some of the show and tell items.

Brian Corteil had his Digital Zoetrope which used 12 oled displays, this was very cool.  He also had a couple of prototype bits from the Digital Zoetrope project on display.


























Jarle Teigland had a couple of projects on display, including a Sense HAT, a TiddlyBot robotic kit and a CodeBug which is a cute, programmable and wearable device designed to introduce simple programming and electronic concepts to anyone.








































Barry Byford had some interesting Bluetooth projects on display. The tracking Bluetooth beacons showed the signal strength of two Bluetooth beacons depending on how far away they were from the receiving device. 
































David Saul had PiMuxClock and Pi-LCD projects on display. The PiMuxClock is basic Raspberry Pi add-on allowing you create a simple digital clock and temperature display.  I brought a PiMuxClock bare PCB from David. The Pi-LCD is simple LCD interface for your Raspberry Pi which has been launched today as Kickstarter project. 















Peter Onion had his awesome LED matrix display on show, it used 4 32 x 32 RGB LED panels connected together running off a Pi.  It was running Tetris.


Phil Willis was showing of the TractorBot which he and Keith entered in the recent CamJam PiWars competition. 















Robin Newman had a Sonic Pi demo on display using an IQaudIO board and a Raspberry Pi DSI touch screen running Sonic Pi controlling Minecraft.















gPiO had their gPiO control box and had some example primary school projects on display.

















Workshops


I had agreed to do some Jam Making, not making Jam but it’s the term used for people who volunteer at CamJam. I helped out with the hacking sessions which were taking in place in the library.  Some Pi’s were setup to allow people to try stuff out and have a go.

Talks

I only attended one talk given by Cat Lamin. Cat talked about running Coding Evenings for teachers and non-teaching staff.