Skip navigation
Sorry For the delay in uploading, been focusing on exams. Two Weeks ago we presented the final build of our project The presentation went well, with only one hiccup; my cheap windows tablet not working, but that was easily fixed by using one of our laptops.   The system worked as it was supposed to, the only error which we couldn't fix in time was the label showing text on the vending form disappearing after completing a cycle. I wasn't able to get a video of the system working without ...
Its been a while since i uploaded a post about the Systems Project, so sorry if this is a bit longer than normal.   We currently have nine days until the build need finished for display at the presentation. So we are all trying to get this done quickly as we also have our exams coming up in two weeks time.     The main design consists of two towers to hold the blocks. Each tower can hold about 10 blocks.    For Sorting the blocks into the towers we have a small p ...
This Weeks Deliverable is to drive the servos connected to the FPGA from the PC, In normal operation, this would be done with the Mbed in the middle. ALthough for getting it up and running I have modified our Maintenance Software to output Hex Values for the FPGA to Read.   Apologies for the poor quality Video     The main bulk of the verilog source, attached, has already been written. The Servo driver was completed for an assignment several weeks ago. The UART receiver has co ...
I thought I would share this project that I have been working on for about six years, on and off. It is a controller for four aspect model railway signalling. Functionality of four aspect signals   When most people drive these signals on a layout, the will use a rotary switch to change the signal, but when you have a layout with multiple of these signals, the control board becomes very cumber sum and hard to maintain.   When I first designed the controller I designed it for use on ...
After this mornings Team Meeting we agreed that i could put up some pictures of the goings on within the group. ...
The prototype for the mechanical design has been decided on and construction of the prototype has begun. Apologize for not having any pictures of the actual prototype, just the sketch. The main idea of the prototype consist of two towers which will hold the blocks. At the top there is a platform where the colour of the blocks will be determined. then deposited into one of the towers, the colour will then be stored into an array for use in dispensing.   The towers will dispense into one ...
Code number Allergy (colour) 0000 No allergy 0001 Red 0010 Green 0100 Blue 1000 Yellow 0011 Orange 0101 White 1001 Black   For the Project we need to be able to read a card code determine the Allergen of the person. To read the bar code we are going to use a Sharp IS471F Light detector which has circuitry built in to operate the infrared led and process whether the light is on or off. So just connect the IR Led up and its ready to go.   The challenge for designing this, is that we ...
As part of the project we need to have a visual c# program read a sensor connected to the MBed. The sensor we decided to use was the Adafruit TCS34725 Colour Sensor, as we already have the colour sensor working on the mbed all we needed to do was to set up the program to read the serial in line and respond to the command sent from the c# application when it wants to receive the data.   The basic c++ source for the MBed looks like this; #include "mbed.h" Serial pc(USBTX, USBRX); int mai ...
Some fun news first, We now have a logo for the "Company" (as this is a mock project, its a mock company). We are Called Alpha Vending Solutions   I have just managed to get working the Maintenance mode Software using visual c#. The fix to get the serial port object to work was annoyingly simple once I found it. The main use of this software will be to test functionality of the system, Send servo commands, read sensors and such. As we still are not fully sure on what software we will ne ...
For the Digital Design (FPGA) aspect of the project we need the system to take inputs from the Mbed. Mostly it will be controlling Servos in a finite state machine, but when the system is in maintenance mode it needs to control the servos individually. This has lead me to come up with  a quick block diagram of how the system should operate.   It will take the inputs via UART, the commands are then decoded (not shown) and sent to the relevant module. Both modules will output the to th ...
Just a quick update on the project. The initial mechanical design has been completed by my team members, and once they explain it to me; I can explain it here. As right now their scribbles make no sense to me.   A couple members of the team are beginning to work on reading sensor data via the MBed, and failing miserably. I am starting to notice a pattern in the source code examples our lecture is giving up, they are (for lack of a better work) crap. If you don't know what i am refering to ...
Im currently studying my third year Electrical and Electronics Engineering at Heriot Watt University. This semester we have a Project to complete as part of a team of fellow EEE students and Computing Students, and i though i would let the community know about it.   The majority of the project is technical, but we also have to look at it from a project management aspect, i will leave out the project management side to be nice. I will mostly be doing the digital design aspect of the project ...
Duncan Fraser

Hantek 6022BL

Posted by Duncan Fraser Oct 6, 2017
So I ordered myself a Hantek 6022BL this week, as I have wanted an oscilloscope since i started tinkering with electronics. Since I am a student though, a couple hundred pounds is a lot of drinking money to spend on one item, especially since knowing myself I would most likely blow it up at some point as I don't have much experience with them. Not going to be a full review, just my first reaction upon playing with it this evening.   I was watching Dave Jones (EEVBlog) video on starting an ...
Duncan Fraser

Verilog PWM

Posted by Duncan Fraser Oct 5, 2017
For an Assignment for university my class had to write a verilog program to produce a PWM output derived from the ASCII Value of our initials which can drive a servo. We were provided a sample verilog source from fpgas for fun, which was clear as mud, but did produce the required output. All examples a could find online where for a simpler PWM output, ie with a period the same size as the largest value of the pulse. Which is more suited for constructing a analog output.   So I have gone t ...