Now that the software is complete, let’s put the system together! During testing, I used a 3D printed jig to hold the PCB so that I could easily hook things up to it, and not have to worry about it dragging across the surface of my desk. It’s also useful for making the PCB level …
Category Archives: Uncategorized
Software Testing
Now that all the modules are done, and strung together in main, let’s do some testing. Specifically, let’s look at the timing. For this testing, each module turns an LED on (active low) when it starts running code, and off when it finishes. The LED is left alone if the code does not run. By …
UI Module
The User Inteface (UI) module is responsible for three things: Reading user input Displaying information to the LCD Managing a menu interface Let’s look at the steps above in order. Reading User Input The user input will be through an encoder, EN11-HSM1BF20. The encoder can detect when the handle is rotated clockwise or counter-clockwise. The …
Microcontrollers: Registers 2
Last time, we looked at reading and writing registers in an AVR microcontroller. This time, lets look at KL46Z256, which is an ARM Cortex-M0+ microcontroller. Previously, we saw that Atmel provided us with a header file that allows us to read and write individual registers, like DDRD, PORTD and PIND. This works fine, but isn’t …