Skip to main content

Posts

Showing posts with the label Beginners

CNC Engraving and Cutting

 An Excellent presentation today at the West of Scotland Area Group today where Chic and Jim share their experiences of using CNC machines for different uses. Covering both laser and spindle based equipment, it was amazing to see the flexibility of these machines for making PCB's , cutting card models and engraving wood and perspex. The session was recorded and will hopefully appear on the WOSAG website soon. Suitable software for creating design files was also discussed.  These included DesignSpark, FreeCAD and Eagle. For drawing, the Open Source InkScape software was highly recommended. Having just started using this particular software a few weeks ago myself, I can support the recommendation. I had no idea however, of the range of extensions available for this free software. One included a .grbl  output ( pronounced Gerbil in the UK)  that would translate your drawings into the machine code file required for these CNC machines. Chic showed a few circuit boards he ...

What is Arduino

 With groups in our area having smaller attendees at Zoom meetings, we decided to try a multi group session so that our speakers would benefit from a fuller audience. On Sunday 14th January The Scottish Border Group, Cumbria Group and North Wales Group joined together for our first joint session. This worked very well, with our speaker, David Roberts giving an excellent talk on Arduino hardware delivered to around 24 members. For those who missed it, it is available on the MERG website on Channel 36 of MERG TV Some Arduino software tutorials are available on the MERG website and there is an Arduino Special Interest Group for those interested. If you want a well structured, beginners course for absolute beginners, I would suggest Paul McWhorter as a starting point.

PMP 5 Logic Probe

 Davy Dick's  PMP 5 Logic probe is a really useful piece of testing gear to establish the logic output of a 5 Volt circuit.  The original kit is built on stripboard and requires three tracks to be cut which can be problematic for some. It may be useful, particularly at exhibitions, to show the status of a digital signal being output from one PMP Kit to ascertain how the next circuit should respond.  A good example of this would be PMP4a (Shuttle Add on) driving PMP 18 (Ezy-Points). To avoid any confusion of polarity, I arranged for the Power and Logic headers to be made available at both ends of the circuit and colour coded them as follows. Red  + 5Volts  ;   Black 0 Volts common ground  ; White  - Logical Output to be tested All the tracks in my version are continuous and will fit on the same board provided in the kit. Obviously, the component layout have been changed slightly but still follows the original circuit diagram. A common str...

Safety in the workshop

 An excellent presentation by Dr. Craig Lennox on workshop safety at today's West of Scotland area group meeting. An amusing but nevertheless serious video was followed by a detailed talk on safety and first aid. I am hoping this talk will be made available on the WOSAG website in due course. The take home message is to ensure your workspace is well ventilated, tidy with no trailing cables. Plan what you are going to do using appropriate tools, avoid distractions and don't rush A clear head is essential. Use PPE where necessary for example ear protection, safety glasses and laser glasses. The risks of burns, cuts, electrical shock and inhalation of dust and fumes were all covered in some detail. Automatic External Defibrillator (AED) are now installed in most supermarkets. A short video was shown illustrating just how easy they are to be used. Excellent talk.  Keep safe everyone.

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...

Solenoids

 Today's West of Scotland talk was on Solenoids. Soenoids are still extensively on some model railway layouts. H&M, Peco and SEEP are common manufactures. Some early controllers have a 15v ac supply which can be used to operate the solenoid. Push buttons or passing contact switches are normally used to operate solenoids due to the large  operating currents involved. These passing switches are expensive at around £9 to £16 for every single point. With the voltage drop across the solenoid a higher voltage is sometimes used supplied by a Capacitor Discharge Unit (CDU) The circuit of  a typical Gaugemaster CDU was discussed costing around £15.  Davy then showed us an equivalent Veroboard version for around 71p that would work with a centre off SPDT switch.  The MERG dual CDU version using a simple on/off switch uses a circuit that operates the solenoid and charges the opposite direction capacitor at the same time. If this unit is placed near the point only a sin...

My Module doesn't work

 This evenings Virtual Area Group meeting covered what needs to be done when your MERG Kit does not function after assembly. Simon West was our presenter and informed us that almost 90% of problems is down to poor soldering techniques. A timely article from Martin Perry has appeared in the December Journal and is well worth reading. Make sure you have done all the preliminary tests as outlined in the building instructions. DO NOT plug in IC's until these tests have ben completed. It is essential that the orientation of components is checked before applying power to the circuit. This is essential for diodes, electrolytic and tantalum capacitors. Fault finding needs a logical approach and you should note down your results as you proceed. Have a reason for doing the test and refer to the circuit diagram. A basic multimeter is essential and does not need to cost a fortune. (About £3.50) A very decent version is available for under £20. Do not be afraid to contact other MERG members. Th...

Electronics 2

 On Sunday Davy Dick ran an online version of his Electronics 2 course. Normally he runs them at his home with around six or seven attendees which gives plenty time for questions and the opportunity to see and touch the circuits The course was divided into three sections covering Numbering systems - decimal, binary, hex - how do we use them in our projects Digital signals • How do we store numbers (e.g. inside a DCC decoder or inside the Servo4 module) • How do we pass numbers (e.g. from a command station to a loco, CBUS, etc.) Serial / parallel connections How transistors work  Using transistors as switches and operating high power devices. Integrated Circuits Examples of ICs, PICs Demonstrations of popular ICs. • Driving a 7-segment display • LED chasers • Route selection • Power drivers, including motors • Comparators (DCC TOTI) 555 timers - and how they are used in Pocket Money Kits How this very popular (and cheap) IC works and its three operating modes: • Bistable – as i...

Mimic Points in Visual Basic

For this project, I wanted to create a moving graphic to mimic a set of points moving from one position to the other.  This Blog shows all that is needed. The first Picture shows the 6 lines needed.                                 This Picture shows the Line Properties.    The tracks are shown with 5 lines, though only the middle ones in red are involved.  The other line shown below the others is the one that actually "moves".  It is shown below the other lines for clarity only.  At the start of the Program running, it is positioned over the lower red line. In VB, each Line has properties and these are shown above.  To get a line to appear to move, all that needs to be done is to gradually change the X2 and Y2 co-ordinates of the line. This is the code for the program. The first 6 lines create a pause Function in the program, by using the Computers internal C...

Sound file editing

 At today's West of Scotland meeting with thirty three attendees, Chris Cosgrove showed us how he uses Audacity ( a free Open Source software) to record and edit sound recordings. The Basic toolbar contains icons for Pause, Play, Stop, Goto Beginning, Goto End and Record. Chris showed how you can select a piece of a recording, remove it and replace with a fixed period of silence.  The ability to add silence is very useful for joining two tracks together with a fade out of the first merging with the fade in of a second. Copy and Paste commands make sampling from different sound files fairly straightforward and Chris mixed bird sounds, sheep and a couple of train recordings including a reversed section to simulate the train disappearing. The Audacity help manual is very well written and covers all aspects of using the program. There are many good sources of audio files including YouTube and the following links. https://freesound.org http://bbcsfx.acropolis.org.uk Chris McCarthy ...

Use Visual Basic to enhance the Display

 The reason that I like VB as a Programming Environment is the ease with which you can make it look nicer or Enhance the Display if you want to sound fancier about it. If we take the Red LED - Green LED Program, we can another couple of features which show the beginnings of what might appear in a mimic panel.  So the first thing we would do is to add a couple of Shapes (another type of VB Object). We put a shape beside the Red Control buttons then set the properties to :- Shape = circle Fillcolor = Red Bordercolor = red Name = Red_Circle Do the same for the second, green, shape. Then we edit the VB code Private Sub Red_Off_Click()   MSComm1.Output = "r"                   '   Sends r Switch off Red   Red_Circle.FillColor = vbWhite       '   Changes the fillcolor to white End Sub Private Sub Red_On_Click()   MSComm1.Output = "R"        '   Sends ...

Introduction to linking Visual Basic to an Arduino

 Visual Basic is an "Object Oriented" language and is a programming environment which I'm comfortable in, so I'm going to look at the steps involved in setting up a Program on a Laptop to control a simple model train layout. Using an Arduino Uno, connect via a USB Cable, the first thing is to establish communication from Laptop to the Arduino. This needs the Comms Component to be added.  This link shows how to do that.     http://www.thaiio.com/prog-cgi/0002_serial.htm This picture shows the main (functional) sections of code, along with the Program display (Bottom left) when it's running. The Visual Basic bit (top left) In VB, you add "Objects" to a form and then attach some code to each Object. Some of the Objects you get in VB are Command Buttons, Labels, Text Boxes, List Boxes.  There are many others. This example has "Command Buttons" named "Red On", "Green Off" and all that happens is when, for example you click on the...

An introduction to the FCU

 At  today's meeting of the North Wales Area Group, Alan Turner presented a basic introduction to the FCU ( FLim Configuration Utility) for controlling CBUS units. Alan began by describing the minimum requirements for a test board which is the best way to begin with CBUS so that you understand how things work before attempting to implement it on your layout. Starting with a push button operating a led that switched off when the pushbutton was released, Alan showed how this can be readily changed to a latched operation  by manipulating the Node Values. Depending on whether you use push buttons or normal switches you have the flexibility to choose either. Alan then added a new module , the CANMIOSVO which can control up to 8 servos. The end positions can  be set up and then controlled by switch or pushbutton. The beauty of CBUS is that a single event can actually trigger more than one output which would allow one switch to set a route of perhaps five points on a layout...

WOSAG Meeting 25th October

 Yet another well attended meeting of the West of Scotland Group with 34 members attending including Greg from Australia. Davy Dick showed us some work he had been doing on improving the basic Track Circuit Voltage detector (PMP 1). A commercial offering shown below has recently been reduced to just under £13 pounds. The theory behind how these work was explained and various potential methods outlined including rectification for DCC users. Keith Shovelin also demonstrated a DCC version that included a voltage display which would be ideal for fault finding on a layout. These solutions are all substantially cheaper. George showed us his new Diorama of a street scene with flashing road cones using pre-wired  MicroLitz leds with  a welder repairing pipes using basic PMP kits and some 3D printing. Davy then discussed progress on the carriage lighting project using the much smaller SMD ITR8307 instead of the TCRT5000.  He demonstrated the voltage change using a flag attach...

Power Supplies for Electronic Modules

 At the 23rd October Meeting of the Cumbria Area Group, we were joined again by David Roberts to present the second of his talks on Power Supplies, this time covering Voltage Regulators for Electronics Modules. He covered linear regulators including the 78xx and 79xx series.  The important subject of regulator efficiency was discussed with the requirement of heatsinks to dissipate the unused energy. How Power Supplies are designed and used was illustrated using some of the readily available MERG Kits including the 5 Volt Adaptor Module (Kit 60),  12 V from an ac supply PMP 6 ( Kit 806), the Universal PSU (Kit 920) and finally CANACC5 (Kit 85). Then the much more efficient and more expensive switching regulators were covered towards the end of the talk, followed by a general question and answer session. Andy Woolass has managed to record both of David's talks and I am delighted to let you know that these are now available on Channel 36 in the MERG TV section of the website...

Shuttle Circuits

 The North Wales Group are currently running a project on Shuttle boards. This is an ideal project for those new to the hobby and is based on Davy Dick's Pocket Money Kits. Allan Geekie is assisting on the project which benefits from the availability of Printed Circuit Boards rather than the normal stripboard. Full details are available on the North Wales shuttle blog , but you will need to be  a member of the Group to access the pages. Apart from the outlay on the PMP kits, Allan has produced a set of additional parts that include the PCB's, additional components and a 3D printed frame with inserts to assist with mounting. As you can see from the photograph above, the Kits being used are:          PMP 10  Speed Controller          PMP 4    Simple Shuttle         PMP 15  Station Auto Stop There is no reason why this cannot be extended further using PMP4a  - Shuttle Add on which works...