I picked up an electronic exercise step counter in my local Pound Shop this week (for £1). It has an LCD display of 5 digits and I thought I might be able to use it to display a given variable value from a picaxe.
Sure enough, it is designed to increment the count each time a contact is made, using an internal sprung pendulum. It also has a button to zero the count.
I have wired connections to it, that work as hoped, in that I can zero it by touching one set of wires together and display any variable from a picaxe using a for-next loop to count up to the number I want displayed.
So far so good, a very basic LCD for a pound.
I can successfully drive the counting process by placing resistors from 5V to the device connections and back to output 1, with this code:
readtemp 1, b3
for b0=1 to b3
high 1
pause 120
low 1
next b0
Unfortunately the connections to zero the count are more fussy and seem to malfunction if they pick up any voltage from the Picaxe circuit.
Obviously I could use a relay to give a make/break connection, to operate the device's zeroing function, but I wonder if there is a better way of providing a simple make/break switch function, driven by picaxe, that doesn't leak any power to the counter.
The ability to display variables such as temperatures on a very cheap self powered display, using only one or two output pins would be very attractive to me. Can anyone help me with the electronic options for the make/break switch electronics?
If so I'll go and clear the pound shop of its existing stocks!
Sure enough, it is designed to increment the count each time a contact is made, using an internal sprung pendulum. It also has a button to zero the count.
I have wired connections to it, that work as hoped, in that I can zero it by touching one set of wires together and display any variable from a picaxe using a for-next loop to count up to the number I want displayed.
So far so good, a very basic LCD for a pound.
I can successfully drive the counting process by placing resistors from 5V to the device connections and back to output 1, with this code:
readtemp 1, b3
for b0=1 to b3
high 1
pause 120
low 1
next b0
Unfortunately the connections to zero the count are more fussy and seem to malfunction if they pick up any voltage from the Picaxe circuit.
Obviously I could use a relay to give a make/break connection, to operate the device's zeroing function, but I wonder if there is a better way of providing a simple make/break switch function, driven by picaxe, that doesn't leak any power to the counter.
The ability to display variables such as temperatures on a very cheap self powered display, using only one or two output pins would be very attractive to me. Can anyone help me with the electronic options for the make/break switch electronics?
If so I'll go and clear the pound shop of its existing stocks!
Attachments
-
50.7 KB Views: 65
Last edited: