At Time to get some experience with 32bit microcontrollers I wrote that after almost 50 years working with 8bit microcomputers and microcontrollers, I thought it about time to get my hands dirty on some 32bit microcontrollers.
This article reports some work in the STM stream.
I abondoned the ST Discovery board in favour of a low cost basic ST32F103 development board costing about $4 on eBay. The chip is a 32bit microcontroller clocked at 72MHz.
As a learning vehicle, I decided to implement the functionality contained in Arduino thermistor thermometer – a tutorial.
The development environment is Eclipse with the GNU ARM toolchain, a debugger probe, the basic development board, and a 1602 LCD display with I2C backpack and an inexpensive CP2102 USB RS232-TTL interface.
Above is the working trial. The GDB debugger allows On Chip Debugging (OCD).
Continue reading Time to get some experience with 32bit microcontrollers – some progress
This article gives an outline of the process used in designing the Fan controlled by humidity sensor to use my Generic heating / cooling controller design (hcctl).
Arduino thermistor thermometer – a tutorial gave a method for designing a thermometer based on a formula predicting the behaviour of the sensor. This article explains a different approach where that is not possible.
Above is a characteristic from the manufacturer’s data.
The curves to no lend themselves to simple curve fits, so a cubic spine interpolation will be made based on key points from the curve.
Four our purposes, the mean curve (green) is sufficient for design.
Above, the mean curve was digitised to capture the shape of the curve, 17 points were used.
Continue reading Fan controlled by humidity sensor – design technique
I have a problem with machine tools getting condensation on them when conditions in the shed read dew point.
A possible solution being explored is to circulate air with a fan, possible inducting outside air, when humidity approaches condensing conditions.
A quick search reveals the HDS10 resistive humidity sensor for a dollar or so on eBay.
Above is the HDS10 humidity sensor.
Most low cost humidity sensors use a humidity dependent capacitive element, the HDS10 is different in being a humidity dependent capacitive element and is therefore simpler to use with microcontrollers with ADC input.
The above graph is from the datasheet. It is intended primarily for sensing high humidity (dew point, condensing conditions) which suits this application.
Continue reading Fan controlled by humidity sensor
This article documents a LEA-6T module build for general experiments.
The LEA-6T is an inexpensive GPS module (~$40 at time of purchase, but getting cheaper) that can supply raw pseudo range data.
The module above is supplied for use on UAVs of various kinds, and came complete with a plastic radome and cables to suit an APM copter. The module also contains a 3D compass (magnetometer) which is not used here.
Above is the internals of the module with a custom cable to pick up just the RS232-TTL signals from the GPS (and supply 5V). The connector is a 8pin Hirose DF13. Continue reading U-BLOX LEA-6T GPS module – for experiments
The Atten APS3005S is a 0-30V 5A linear DC power supply.
This later model includes a thermostatically controlled fan which at moderately light currents short cycles (10s on 20s off) and is very annoying… especially since it sits above my desk.
This project describes application of the generic heating / cooling controller (hcctl) to control the fan, reducing the short cycling nuisance.
Continue reading Atten APS3005S – a better thermostatic fan control
I bought a couple of ‘generic’ micro SD cards on eBay about a year ago. They were not much cheaper than brand name cards, and though only speed 6 rated, were available locally for quick delivery. I have a vague recollection that it might have been a RPi product supplied with NOOBS on it (I have a couple of SD adapters with the RPi logo on them).
These were both used in RPi B systems and worked without fault for the last year, though they are not running full time (perhaps a couple of hundred hours of use).
During a Raspbian sofware update, both cards failed with the same problem, they effectively became read-only cards. Continue reading Micro SD card premature failure
Some while ago I purchased a EZP2013 device programmer on eBay.
There were literally scores of sellers, and they all looked the same, and some variation in price from about US$25 to US$50… which is not unusual.
I used the thing a few times, and it was clearly a very poor product so I replaced it with a SOFI SP-8B which cost close to US$50 on Aliexpress including a bunch of (6) adapters. Continue reading Chinese counterfeiters at it again – EZP2013
Seeing the promotion of a clear adhesive with cure initiated by ~400nm UV light from a LED source, one’s mind wondered to its application for attaching temperature sensors to heatsinks etc.
A sample of Kafuter K-300 was tested.
Above is the test jig, a 1N4004 diode is attached to the corner of a scrap of 1.6mm thick aluminium sheet using the adhesive which was cured with UV light and then allowed 10 hours further to strengthen (if that helps). Continue reading UV cure adhesive for temperature sensors
I use a number of implementations of the DS1307 or DS3231 Real Time Clock chip, preferably the latter these days as they are considerably more accurate and compatible with DS1307 code.
In some applications, it is necessary or sometimes just better to preset the clock before connecting it into the application, and the need arises to set the clock ‘stand alone’. The method I have used for this has been clumsy and not as accurate as one might want for the DS3231, so this article describes a new solution.
The solution uses an Arduino as the engine if you like. Above is an Arduino Pro, but a range of similar Arduinos would be equally suitable. ALso pictured are three RTCs, one connected to pins A2, A3, A4 and A5 providing GND, VCC, SDA and CLK respectively. Continue reading Arduino app to set DS1307 Real Time Clocks.
This article documents initial tests on a MultiStar 5200mAh 3S Lipo.
Two of these were purchased for about A$24 ea + delivery from the HK Australian warehouse.
On delivery, the batteries were served a balance charge to full capacity.
Above, one of the batteries with the usual mods to suit my quadcopters. A heavy heatshrink encapsulation to reduce the risk of battery damage from crashes and flying propeller bits, rocks etc. A little velcro path to help stabilise the battery on the quad, a ‘gripper’ for the balance plug, balance plug secured to keep it out of the props, and a charge indicator for convenience.
Continue reading MultiStar 5200mAh 3S Lipo – initial tests