Joe's Hobby Electronics
  • Joe's Hobby Electronics
    • Electronics Blog

DipTrace PCB software

6/3/2020

1 Comment

 
I would just like to thank the people at DipTrace for allowing me to update to a version of their PCB / Schematic software that supports creations with more pins. 

I've been using DipTrace for years and after outgrowing the basic free version, upgraded to a non-profit version that allows my creations up to 1000 pins per design. Over the years this has only once been a bit of a limitation when I designed a large backplane with 10, 96 way connectors plus other components. Fortunately in this instance I could opt for 5 slot boards instead and just connect them together. 

Yesterday however, whilst working on my new tic-tac-toe project, I blew the 1000 pin limit, and not by a small amount either; I'm going to need around 1500 pins (I'm soooo pleased I don't make and drill my own boards any more). Anyway, if you check out the DipTrace website they do offer special pricing discounts for non-profit users. So I sent them a grovelling email, included a link to this website, to the project I'm working on and asked them to show pity on a poor, and basically broke hobbyist... and they came back with a very reasonable upgrade price. I couldn't key my PayPal details in fast enough. 

Couple of things worth mentioning about DipTrace.
I used Eagle many years ago, before they were acquired by Autodesk, and it was an OK product but I personally never took to it. I stumbled across DipTrace when it was mentioned in the electronics mag I used to read at the time and I've never really looked back.
You can do everything you would expect including creating your own parts (which is really easy), and the files it outputs are completely compatible with JLCPCB who I now use to make my PCBs. 

There are some other benefits that I feel are worth a mention.
If I now create a huge board using my new licensing allowances, I can still put a copy of the design file up on my website, and readers can download and open that file using the free version of DipTrace. You can't make any changes to the file if it's metrics exceed your license capabilities, but you can still export the files to send to a PCB manufacturer or print the artwork if you want to etch your own boards. 

The other thing that is very appealing is it's a one off fee. DipTrace offer free updates for minor releases but there's no monthly subscription fees. I'm really not a fan of the subscription model. It may work great for business but I may not get any electronics play time for several months at a time, so and I don't want to be wasting money on a subscription I don't need. I just feel happier knowing I have the original software, and even if the supplier disappears I've got the original installation files and so can still access my own creations whenever I want. 

Would I design a 10 layer PC motherboard in DipTrace; probably not, but that's not what we do; I've only just moved to double sided since I no longer make my own boards. 
So, if you're looking for a friendly but powerful PCB / Schematic design package I'd suggest you to give DipTrace a go. The free version is perfect for even modest creations.

www.DipTrace.Com



1 Comment

Tic-Tac-Toe

2/3/2020

0 Comments

 
I've not been around much and my hobby has taken a bit of a back seat as I've just been so busy with other things. However things seem to have calmed down for now and I've got some time to switch on the soldering iron.

Whilst sorting out my late brothers affects I stumbled across the plans for a tac-tac-toe (noughts and crosses) game that he designed and built in 1978. It was constructed entirely using CMOS logic chips (no CPU or MPU). I remember him working on this project all over Christmas and it being a bit of an anti-climax when it was completed; it's not like you can ever win the game. According to his documentation, it required 188 logic gates spread over 66 separate ICs. It also needed 22 transistors and used LEDs for the square in use indicators and some push buttons allowing the human to enter their move.  Unlike the version of the game referenced in the movie Wargames, the hardware emulation couldn't play itself. The physical version of his game no longer exists.
As a programming exercise I've often written software to play this game when learning a new programming language new CPU/MPU platform, but I've never built one with just logic gates. 
After studying his original plans, it all just seemed overly complex to me. The rules of the game are of course pretty simple with no complex algorithms required and my brother chose to implement the game logic using lots of NOR and NAND gates. He could have done this with a Z80 or 6502 CPU (they were available) but it would have been expensive. It occurred to me that it would be really easy to build a physical version of this game using not much more than a clock, binary counter and some EEPROMS, which lead me to thinking that it could be possible to do this without ANY IC's at all, using just DDL (Diode Diode Logic). There are some problems though using just DDL.
All the logic elements (gates) are constructed using small circuits based on diodes, but each diode causes a small voltage drop that needs to be overcome else after a voltage has passed though a thought DDL gates, the voltage will be too low. Transistors would be the obvious solution but that goes against my pure DDL idea. There would be some research and experimentation required to see if I could get this approach to work, but since I've set my heart on building this game now, I've opted to build an intermediate version using just TTL and diodes.

My idea is to build something that would be familier to anybody who has worked designing Microcode for CPUs. 
There will be a master clock that will supply regular pulses to a counter. The output from the counter is decoded and selects a single row in a matrix. Each row in the matrix represents a rule and if the rule is true, a suitable course of action. 

To keep things simple, my Microcode engine will not support branching. This means that the rule checking starts at the first entry, runs all the way to the last entry, and then just starts again from the start.

The game should allow for either the player or the machine to move first. It needs to check after each move to see if there is a winner or a draw, it needs to make sure the player cannot make an invalid move (cheat) and, if possible, I want the machine to be able to play itself. I will use coloured LEDs to indicate the owner of each of the nine game squares, LEDs will indicate whos turn it is, and the game outcome. Nine push buttons will allow the human to enter their move and there will be a couple of outer buttons allowing the human to setup the game.

First thing I need to do is experiment with constructing AND gates using only diodes. These diode gates needs to be able to interface with the TTL elements. I will also construct some of the major process blocks including the clock, sequence counter, reset and game end logic.

0 Comments

So much to do... so little time

15/9/2019

1 Comment

 
So, as always I need to apologise for neglecting things on the site but I've just been so busy. Besides being busy at work I've also been busy in the workshop. One project that I'd like to share with you is my attempt to re-create an iconic British 8-bit computer; the Acorn System 1. 
The Wiki for this computer is here: https://en.wikipedia.org/wiki/Acorn_System_1

By todays standards, the Acorn System 1 was probably less powerful than a modern calculator with only a very limited amount of RAM (just over 1K on board) and a clock speed of around 1MHz, but for many people in the 1970's this would be an introduction to computers that would send them off on a journey that, hopefully, is still ongoing for them today. 

I wasn't rich enough to possess one of these beasts, but my brother was, and it has always held a certain fascination for me. I would see him slaving over the keypad for hours at end, with the result being a few flashing LEDs or some terrible sounding music coming from a tiny loudspeaker he'd connected to the thing. Even so, it was the most fascinating thing I'd ever seen and that wonder has stuck with me all these years. We will return to this in a minute.

A few months ago, I discovered JLCPCB. I used to create my own PCB's but they were limited. Typically single sided and whilst you can do some really clever things making your own boards, there are just some things that are too difficult. To be able to have double sided, high quality boards with a silk screen always seemed like a very expensive luxury. I'm going to create an article on getting PCB's made with JLCPCB. Long story short for now, I needed to order some PCB's and though since I'm paying for postage, is there anything else I want. It was at that point that the Acorn System 1 popped into my head and I decided to slip some PCB's that could, in theory, allow me to re-create the computer onto the order. This was a rush decision. I needed to order the original PCBs ASAP as I had a time critical job that was waiting for them, so I gave myself 24hrs to design a set of PCBs for the Acorn.

I had some hi-res pictures of the System 1 boards, and circuit diagrams, but the pictures were only of populated boards so you can't see all the tracks and their end points and I did find some discrepancies between the board pictures and the circuit diagrams. Also, the Acorn System 1 as was, uses some chips that are not exactly modern these days, and one (or two depending on the final configuration) are all but impossible to get hold of. I will cover exactly how, what and why I did to get the PCBs created in a separate article, but suffice to say for this blog entry, the PCB's arrived yesterday. 
Picture
Re-created Acorn System 1 CPU and Display/Keypad boards
JLCPCB have a minimum qty of 5 boards for each design, which on the one had seems a bit wasteful; especially since I don't even know if my design will work, BUT the boards are so darn cheap you don't really need to worry.

So, the above picture shows the boards and the partially assembled Keypad / display board. 

I wonder if this will work. 
1 Comment

One thing leads to another

8/1/2019

2 Comments

 
The last 12 months have been hectic and my hobby has suffered as a result. However, things are "hopefully" starting to calm down now and I can return to my beloved pastime. 

I always book vacation time over Christmas and as it's a nice block of time, that's when I undertake my Christmas project. I did have something in mind for this year, but as usual, events overtook me.

Long story short, I made a new friend Dennis, and Dennis has a hearing problem. Whilst we were chatting he mentioned that for various reasons he didn't want to use a commercial hearing aid, so he'd tried to assemble one for himself using an off-the-shelf headphone amplifier but it wasn't really working. After inspection and a little test, the reason became obvious. It was designed for line-level audio input and not direct connection to a microphone. 

Now I could just have added a pre-amplifier, but even then the performance wasn't going to be great. Since size isn't too much of a problem, it occurred to me that some of the available space could be used for adding some audio filters. This opened a complete can of worms.

Depending on the listeners situation, the filter requirements are going to be different. Maybe you're just wanting to enhance the speech audio from someone you are talking too face to face. Or maybe you want to filter out some background noise. Maybe you are at the opera and want to enhance the vocal range but subdue the music from the orchestra and it soon became apparent that this is the sort of project you can make as simple or complex as you want. 

So, some type of adjustable filter would be required. A band-pass filter would probably be ideal. This would allow frequencies within a certain range to pass through, but attenuate frequencies that are either too high, or too low. To make it truly configurable, you need to be able to adjust the lower minimum frequency, and the upper maximum frequency thus leaving the pass frequency range or pass band in the middle.

Something with a preamplifier, band-pass filter, and headphone audio amplifier in a box with a rechargeable power source seems like it would do the job nicely. But how to design and test a suitable filter design.

I don't have any equipment that I can easily utilise to measure the performance or profile audio filters. My spectrum analyser has a sweep generator built it, so this is ideal... but it only works down to around 30 KHz which is wayyy too high for audio work. I need something that will go from near DC (0 Hz) to around 20 KHz.
I need an audio spectrum analyser; or Audio Analyser as they are called. They exist, and you can buy them, but when I saw the price I thought bugger that, I'll make my own. 

The process to profile or measure the response characteristics of a filter is pretty simple. Inject a signal of a known frequency and amplitude into the filter input, and measure the amplitude at the output. Repeat that for a selection of frequencies from the filters minimum to maximum frequency range, record the results, plot them on a piece of graph paper and hey-presto, you get the filter profile, and yes, I "could" do it that way. But it's very labour intensive and if you are want to tweak your filter design and re-profile it, it starts getting very time consuming. What's needed is a gizmo to do the hard work for you. 

More soon...


2 Comments

19" Card racks and a 3D Printer

20/4/2018

2 Comments

 
I like 19" card racks. I've made use of 19" racks in several projects including a custom computer and an extendable bench power supply unit. The only real problem with them is cost.
The basic 19" frame is reasonable enough, but the card front panels and some of the other bits are really expensive.

So, several months ago I purchased a 3D printer kit. Historically I've been really unlucky with CNC machines and they have always been more trouble than they are worth. However, I've been wanting a 3D printer for ages and I've been really looking forward to being able to print some custom parts including these PCB mounts for my 19" racks.
Picture
These plastic parts are used to mount the PCB to the card front panel, and I'm amazed at how much they cost; talk about daylight robbery. So, after a lot of fiddling and experimentation, I managed to print a reasonably accurate version of the above. It even worked and this then got me thinking if it would be possible to print the front card panels as well.
Picture
A couple of cards in my extendable bench Power Supply
So, after some hacking around in Microsoft 3D builder (which is a really primitive 3D building tool but does the job) I created a model that prints a front plate with integrated PCB card mount bracket.
Picture
The next step is to print the front with all the holes pre-made for the switches and LEDs etc. It will save a small fortune in buying metal front plates, and a lot of time in prototyping and building as there should be no more drilling and endless hours at the bench with a file trying to make pretty square cut-outs for displays. 
2 Comments

Revisiting the digital thermometer clock

29/5/2016

5 Comments

 
The digital thermometer clock has been a real success. Many people have contacted me to say they've built it successfully; most of those people had no issues in construction. However, the performance of the clock; mainly it's long term accuracy has been an issue. The DS1307 RTC chip was good (and cheap at the time), but it's not great in a clock like this and constantly seems to need adjusting.

A little while ago I stumbled on EBay suppliers selling DS3231 modules for around £1.50 each for a complete module so I purchased a couple to experiment with and see how easy they are to use.

Today I upgraded my clock to use that module. A little bit of fiddling with the original PCB is required but it can adapted relatively easily. A few changes were also required to the clocks original firmware.

Anyway it's been running on the bench for a couple of hours without any problem, so I'll publish upgrade details soon. I'm also going to re-publish an updated version of the original design.

Details on how to update the original design can be found here.
5 Comments

Buck voltage regulators

1/5/2016

5 Comments

 
I've written a review about these buck voltage regulator modules that Ebay is awash with.
You can read it here.
I won't spoil the surprise by giving you the ending.
Picture
5 Comments

Temperature monitor and alarm

11/4/2016

4 Comments

 
This was one of those projects that should have taken an afternoon and didn't, however it's now complete and working rather nicely.
Picture
I already had a box from a defunct project that had the 4x20 LCD display installed and power switch, mains transformer and a mains IEC socket on the rear so I decided to re-task it for this.

Inside is a PIC18F25K22 running this show, and the device can monitor up to three channels. Each channel has a 5-pin din connector and cable that connects to a Maxim DS18B20 temperature sensor.
You can set the alarm temperature independently on each channel, and the project starts beeping and flashing the LCD backlight if a maximum is exceeded. I also included a relay that can be used as a power interrupter for the project under test. This way I can leave a project on soak but if it starts to over heat, the power can be cut automatically.

The reason it took longer than anticipated was for some reason the PCB never etched correctly and I had some messing around to do. The software only took around an hour to write and debug. I love Proton BASIC.

...and the reason it's three channels and not more, well I happened to have three 5-pin din sockets in my junk box. If I'd had more... who knows.

If anybody is interested I'll make available the circuit diagram, PCB foil and PIC firmware but this really is an easy project to design and build.

So, now that's up and running, I can get back to the original task of designing a decent voltage boost converter.

4 Comments

And the distractions continue. 

6/4/2016

0 Comments

 
So, over the last few evenings I've managed to finish the first useful board for my new extendable PSU; a 5v board that can supply around 3 amps. It has a trim control that allows the output to be adjusted from 5v to 6v, and two op-amps wired as voltage comparators that illuminate a couple of LEDs to indicate over or under voltage conditions (less than 5v or more than 6v).
Now all happy that I'd got my first board up and working I set about designing the next one that can provide a variable 0 to 30v at around 1 amp.
Happily playing with some ideas on my breadboard I suddenly noticed smoke coming from the circuit, a bang, and then a piece of the voltage regulator went flying past my head.

The problem was, besides a fault in my design, I hadn't noticed that the regulator was starting to fry.
I did have an amp meter in series with the board but I didn't see what it was reading.

What's needed I thought, is something that can alert me to when things are getting hot.

So, I've started on a new project. It will have the ability to monitor multiple temperature sensors and report audibly if one or more of them exceeds a pre-defined temperature. All this so I can eventually measure and record the discharge curve of a battery pack. See previous blog entries to find out more about that.

That's another breadboard with a half finished prototype put to one side, and the start of another project; multi-temperature sensor alarm project. I need to think of a more snazzy name than that. Whilst it would have just been simpler to pick up some cheap data logger off Ebay.... it wouldn't have been so much fun.

Oh.. and a word of warning. Electronics on the whole is a safe hobby. Baring the old soldering iron burn or stabbed finger when a screw driver slips, you should be pretty safe if you are sensible and carful. However, things do go wrong and most components will complain venomously if they are stressed beyond their design parameters; or just connected the wrong way around. I'm fortunate in that I wear spectacles and they offer a limited amount of eye protection, but you do need to be carful. When things start to go thermonuclear, it usually happens fast. 
If you're ever present when a tantalum capacitor explodes, you will wish you had a gas mask and fire extinguisher handy never mind a pair of spectacles.
0 Comments

Inductors

3/4/2016

1 Comment

 
I'm currently working on a +5v plug-in module for my new PSU (see previous blog post).
I had several requirements for this module including the ability to withstand a dead-short circuit and the final output voltage to be trimable to +/- 0.5v. Because of this I decided not to use the existing +5v rail that's already present, instead opting to down convert the existing +12v.

Good old linear regulators are almost indestructible if a few sensible precautions are taken, but they give off a fair amount of heat when dropping a large voltage, especially if you are wanting to pull a couple of amps.

After some research I opted for the LM2576-ADJ (also because for some reason I have a stack of them to hand).
Picture
The above circuit is straight from the datasheet and I'm using this almost as is. The only component required that I didn't have was the 150uH inductor.

Like most seasoned hobbyists I've learned to keep things that are useful and I've a drawer full of old inductors, ferrite rods and toroids that I've salvaged over the years but I decided to wind my own inductor on a ferrite toroid.

Now I've never really given this much thought before, but when buying inductors they list the inductance value, the amperage and sometimes the resistance. A wire inductor is after all just a long piece of wire, usually wound around a former of some kind so it's bound to have resistance and the more wire you have, the higher resistance. Because it's wire it has a maximum current carrying capacity and hence a maximum working current.

However, whilst experimenting with winding an inductor for this project I noticed something that in hindsight is obvious, but that I'd never really thought about before.

I wound two different inductors and after some experimentation managed to get them both pretty close to the inductance required; and I've opted to use a slightly higher value of around 220uH for this project.

Picture
The left one was wound on a much smaller toroid; you can't tell from the picture but the larger core is also around double the thickness of the smaller one.

Both inductors work in my test circuit but the larger one is more efficient.

With the input voltages the same for both tests, the regulator circuit draws 472 ma under test with the larger inductor, and 493 ma with the smaller one.

I'm not sure how many turns there are on the small inductor, probably around 70, but you can see there are only 14 on the large one and even taking into account the physical size of the core, much less wire was required and hence it has a lower resistance.

Oh, and if you're wondering how I wind my cores and check their inductance, I'll create a blog entry about that when I get a chance.

1 Comment
<<Previous
Forward>>

    Author

    A software and hardware engineer who loves retro computers.

    Archives

    March 2022
    September 2021
    April 2021
    June 2020
    May 2020
    April 2020
    March 2020
    September 2019
    January 2019
    April 2018
    May 2016
    April 2016
    March 2016
    February 2016
    January 2016
    May 2015
    April 2015
    March 2015
    January 2015
    December 2014
    September 2014
    August 2014
    April 2014
    March 2014
    January 2014
    October 2013
    September 2013
    August 2013
    July 2013
    June 2013
    April 2013
    March 2013
    January 2013
    September 2012
    June 2012
    May 2012
    April 2012
    February 2012
    January 2012
    December 2011
    November 2011
    October 2011
    September 2011
    August 2011
    July 2011
    June 2011

    Categories

    All
    18f25k20
    18F25K22
    1-wire
    2114
    2764
    3D Printer
    3D Printing
    74hc595
    74ls595
    86-0325
    8MHz
    Access Speed
    Acorn
    Acorn System 1
    Alarm
    Aluminium Panel
    Amicus
    Amicus18
    Amicus Basic
    Amplifier
    Antex 1107
    Anti-static Mat
    Arduino
    Assembler
    Backlight
    Bargains
    Basic
    Bat
    Batdetector
    Bat Detector
    Bats
    Bench Audio Amplifier
    Bench Light
    Breadboard
    Bubbler
    Buck
    Bug
    "C"
    Cable
    Cable Gauge
    Cable Wire Size
    Capacitors
    Catalogue
    Clive Maxfield
    Clock
    Clocks
    CMOS
    Common Emitter
    Compiled
    Compiler
    Connector
    CPU
    CPU Simulator
    Crownhill
    Custom Computer
    Custom CPU
    Damage
    Develop
    Diode
    Diptrace
    Double-sided
    Double-Sided PCB
    Dry-joint
    Ds1302
    DS1820
    Ds18b20
    Ebay
    EEPROM
    Electronics And Circuits
    Eprom
    Erase
    Etch
    Evaporator
    Failed Capacitor
    Fake
    Fax Paper
    Ferric Chloride
    Fire Hazzard
    Firmware
    Florescent Tube
    Health And Safety
    Hidden Part Numbers
    High-Voltage
    Hv
    IC Test Clip
    IC Testing
    In Circuit IC Testing
    Incubator
    INS8154
    Instruction Set
    Inverter
    Kickstarter
    Laser Cutter
    Lcd
    LM2596
    LM386
    Logic Analyser
    M7MOJ
    Maxim
    Maximum Current Rating
    Mega
    Mit
    MITx 6.002
    MK4
    Molex
    Mosfet
    NE555
    Nixie
    Nixie Clock
    Npn
    OXO
    Oxo Machine
    Pcb
    Pic
    Pic Basic
    Pickit2
    Pickit3
    Pic Programmer
    Pixy
    Poster
    Pre-amp
    Prices
    Programming
    Project Box
    Project Case
    Project Enclosure
    Propagation Delay
    Psu
    Psu Failure
    Qfn
    RAM
    Rapid Electronics
    Raspberry Pi
    Regulated 5v Psu
    Regulator
    Repair
    Review
    SAD (Segment Address Decoder)
    SCC
    SCC MK4
    Seven Segment Display
    Shift Register
    Silient 700
    Slow Progress
    Smoke
    Smps
    Soldering
    Speed
    Speed Test
    Stepper Motor
    Supression
    Swg
    Switch Box
    Tank
    Tantalum Capacitor
    Temperature
    Temperature Sensor
    Texas Instruments
    Thermometer
    Tic Tac Toe
    Tic-tac-toe
    Timer
    Tools
    Traffic Lights
    Transistor
    TTL
    Usb
    Uv
    Vbe
    Vcb
    Vce
    W65C02
    Wash
    Weller
    Wirecutters
    Wire Cutters
    Wire Strippers
    Wiring
    Wp3eu
    X2 Capacitor
    X Capacitor
    Y Capacitor

    RSS Feed

© Joe Farr, 2011 - 2022 - Email: HobbyElectronics@kcsl.uk.com