Skip to main content

PIC Projects

 Two interesting PIC projects were shown at JALSIG's last meeting which is now available to view on MERG TV.


Brian Norris demonstrated a program which simulates eleven lit traffic cones working in a chaser sequence as you would see on a motorway or roadworks. Developed using a 16F18323 chip, Brian explains how he moved from a very basic program to a more sophisticated one using the pintools function.

This was followed by a presentation by Ian Hart showing a CANMIO board with modified code that checked the inputs and outputs in a specific sequence.     This apparently is a really useful tool to fault find boards coming from other members to ensure outputs and inputs are soldered properly without shorts or bridges.

The session was recorded and is available on the JALSIG area of MERG TV

You would have to join the Group through the area groups page.

Comments

Popular posts from this blog

Train sequence / timetable using Arduino

                              Following discussions in a MERG Zoom meeting about potential projects for the Cumbria virtual area group I have started this blog to share my ideas for building a train sequence / timetable system based on an Arduino UNO. The trigger for this project was Andy Robb's article in the MERG journal (June 2020 edition). In it Andy describes using an UNO with a OLED display to produce an electronic station display board.  Having tried out Andy's version I started thinking about expanding the idea and have come up the following list of possibilities: 1. Replace my card index train sequence with an electronic version. 2. Have the train sequence synchronised with the on platform displays. 3. Display an analogue clock on the station display and have it display the train times. 4. Store the position reached in the sequence so that it starts where it left off on power up.  To mak...

Push button Ezypoints

 A few months ago I produced a batch of Ezypoint kits for our local members to overcome a shortage in the Kitlocker.  At that time the kit was produced on stripboard which some members find problematic. An additional PCB board normally available from MERG was not available either.  Alan Turner ( the PCB designer) had only a few boards available but graciously provided me with the gerber files to allow me to order PCBs directly from China . Having sourced all necessary components, the kits were duly made up. I find this simple kit is really useful for automation projects. A toggle switch provides either a HIGH or LOW on the PIC input pin to determine which of the two servo positions is selected. For a particular application, I wanted to use a push button to toggle the position on alternate presses of the button. This involved a rewrite of some of the code in the PIC. I initially developed the program using an Arduino as a means of testing the logic. When this was successfu...

Project Updates

My apologies for the shortage of posts this month due to shortage of writing time while I've been  focusing on other projects. Speaking of projects, at the last Cumbria Group meeting we were updated on two very interesting developments. Firstly Mark Bradley has made great progress on his operator messaging project which was featured in September 12 A timetable of train movements has been created initially on a card system so that operators were aware of which trains to expect or prepare for the next sequence. The movements are now recorded on  a memory card and each record is sent by the Arduino Mega via it's I2C bus to the relevant display or displays. Different display types have been tested and the records can be advanced or reversed in single steps or in tens. The code is available from Mark for those interested. A second project this time from Tony Hoath, featured a complex scissor crossing with route switching using Arduino controlled relays to ensure the relevant polari...