-
Mistakes
04/04/2015 at 14:39 • 0 commentsWell I finally got back around to probing about my initial board, and I think I found another reason to respin this board. I think my differential amp is hooked up backwards! While probing I found that the output of my circuit was saturated right at five volts, which is the output of the differential amp that compares my references voltage divider to the thermistor divider. I'm not big on amplifier theory but if memory serves me, feeding back into the non-inverting input is probably a good explanation for the output saturation. I haven't given up yet, but I do have to rethink the design a bit. More to come.
-
Noise
01/18/2015 at 02:09 • 0 commentsWhat a lovely 5 MHz sine wave. Not sure why its coming from my crappy breadboard power supply, but hey, now I know I need more filtering. Maybe a lot more. That wave is about 0.2 V peak to peak, which probably adds up to a lot of noise coming through the OP Amps. A 10uF cap on the power rails quites it down (oddly, when I power on, its still there, but slowly fades off after about a few seconds). Also I replace the single Amp with the 10R variant of the part (not the U variant I thought it was). Except the outputs are saturated to the Amps 5v max. I'll have to probe all the points when I get a chance to see if I messed up the Amps, or if I just need to adjust the resistor values.
-
Trello
01/14/2015 at 00:03 • 0 commentsAs an experiment, I threw a link onto the project for a Trello board I created for this project (https://trello.com/b/emRXO44l). Hopefully, for those who are following me, it will give a better sense of progress and give me a better sense of organizing what I'm doing.
-
Update
01/10/2015 at 19:07 • 0 commentsWell I figured out my one footprint problem for the single op amp. The datasheet mentions model variations 01, 01R, and 01U. Well my part ended in 01T which was confusing to me, but looking at the digikey parts again, T is actually at the end of every part number. I think I must have laid out the footprint for the 01U, but ordered the 01 variation. So I ordered the 01U variant and I'll put that on the board and try out my original design without feeding a PWM signal into the board for reference. Maybe that might solve some of my noise issue I was having during initial testing. I'll have to probe it with the scope as well to see if the noise is just in the micro, or if its coming from the board/test setup. I can play around with extra filtering too before I try the code based ADC noise fixes.
-
PCB Service Comparison
01/06/2015 at 12:40 • 0 commentsSince I bothered to order my first PCB from two services, i figured I'd post a quick comparison for reference. First and foremost, I noticed that that the DirtyPCB board had my mechanical holes I specified, whereas the OSHPark board did not. I didn't realize this, but when I placed the pad to create the hole, I selected 'NPTH, Mechanical', in KiCad, which for whatever reason spits out that into a separate drill file. Looking back in OSHParks FAQ, their service will only read one drill file and ignore any others supplied without warning, so be careful with that one. DirtyPCBs apparently is fine with multiple files.
The second difference is color. OSHPark as you may know is the purple board. DirtyPCBs has options for a few colors, I chose the default red.
Another point is that DirtyPCB stuck a batch label on the front of my. Small and inconspicuous, but different.
The DirtyPCB boards also came with smoothed edges, whereas the OSHPark boards have the panel connecting nibs on them.
The last board difference I can notice is that OSHPark has the gold plated finish on the pads, whereas the DirtyPCB ones are tinned.
Finally of course, OSHPark is made in the USA and DirtyPCBs is made in China, which is a big difference in shipping times if you do the standard cheap shipping. DirtyPCBs had the boards made and shipped pretty quick though.
-
First Failures
01/03/2015 at 02:52 • 0 commentsWhile in theory the board almost worked, it mostly didn't. The first issue was I messed up the footprint on the single op-amp. Looking back at the datasheet there were three different pinouts for the SOT-23-5 version, none of which had a model that corresponded to the part I ordered. Outstanding.
The first rev of this board was meant to be a quick breadboard proof of concept. After I had wired up an additional analog output from the trinket to be my reference voltage since i screwed up the voltage divider buffer amp, I had outputs coming from the board in the appropriate range. However after some poor probing I burnt out the 5V breadboard supply that failed into an open state, passing the transformer input to the 5v rail. While this worked OK, and quickly brought the thermistor temperatures very high, since the voltage reference wasn't working, the Op amps saturated and I just got max readings from the trinkets analog inputs. So I had to settle with testing with the 3.3V rail off of the breadboard supply, as the trinkets onboard regulator would get pretty warm trying to run the sensor. The mosfet control seemed to be working to control the voltage applied to the divider, but the low voltage supply didn't seem to warm up the thermistors at all.
While I didn't have warm thermistors I tried to get some measurements anyway. Since the Trinket can program over the USB but not do serial over USB by default, I threw on this EBay Serial Bluetooth adapter, and loaded up a serial terminal on my phone. That worked OK for some quick and dirty output.
It looked OK until this point. This is when the real problem reared its head. While I could measure a solid voltage off the output pin on my board with the multimeter, the analog inputs on the trinket were all over the place. Easy +/- .25 volts. This seems pretty odd as I had filters on the output from my board. I'm sure there is something I'm missing, but the board needs to be respun and redesigned anyways. Maybe the board could use that onboard ADC. Plus a well designed board should either plug right onto the trinket board, or just stand on it's own. Also on the redesign agenda would be to use NTC thermistors instead. For whatever reason the PTC ones I choose have a pretty small range of resistance and cost a lot.
Anyways, today is the end of the contest entry period, so whatever I have at this point is my entry. Also to fulfill my obligation to the contest rules I'm currently uploading a video of myself rambling on about my project to and pointing at my breadboard for a few minutes. Riveting entertainment, I know, but its in the rules. I don't want to disqualify myself.
Hopefully my next update will have some better results.
-
Everything is here, but I'm not.
12/28/2014 at 01:32 • 0 commentsWell I got the parts in from digikey, and the OSHPARK boards were reported delivered to my house, where I'm not. The holidays are a tough time to do a short turn project. I've setup my software environment and checked that in. I kind of like the visual micro extension for Visual Studio. VS community edition is free and we'll featured, Visual Micro is mostly free, the pro version has more features but I don't know what exactly. I haven't yet uploaded code to the Trinket so I don't have a definitive feeling of how well this setup works, but it's looking good so far.
-
PCB Races
12/22/2014 at 16:06 • 0 commentsAmazingly my Dirtypcbs.com order has apparently shipped already, so hopefully with the DHL shipping it will be here by Friday. My OSHPARK order was upgraded to expidited processing for free, and is at the board house. No ship notice from Digikey, although I ordered late Friday night. I'll have to experiment later with different thermistors, as I apparently picked the most expensive ones. I think the same board could be used with cheaper NTC thermistors, but some of those I looked at had much wider resistance ranges, good for measuring, but I need more information on how easy the devices are to heat up. I haven't sat down and tried to understand if I can calculate a temp based on power and dissipation. So experimental methods will be used. One thing I forgot about was the compas but I might have one of those laying about.
-
Parts Ordered
12/20/2014 at 06:56 • 0 commentsWell after calculation all the various resistor values I needed, the non-Trinket parts are on order from DigiKey. I've added a link to my BOM (its public if you have an account on their website), right next to the OSHPark and Dirtypcbs links. For now its off to writing the software side as much as I can without the hardware. That will mostly be setting up the structure, analog reads, output mechanism (I have one of those Nokia LCDs in the drawer I might use for this), and guessing at the algorithm with fake data.
-
Boards Ordered
12/18/2014 at 19:14 • 0 commentsWoooo! I've submitted my board layout and now I wait. I'm not quite sure how complete the project must be for the January deadline, but here's hoping I get them before the. For fun, and comparison, I submitted to OSHPARK (link to the board on the project) so it can be easily ordered by anyone. One of the tenants of the contest was easy replication. I also, after a quick Google search for alternatives, submitted an order ro dirtypcbs.com. 10 boards for $14 from China. Free standard shipping but I payed the extra 17 for DHL. I'll see which ones I'll get first. I may have to mock something up on the breadboard in the meantime to build the software.