garrykneeshaw
New Member
Hi,
I am in the early stages of building an anemometer for a college project. I have built the 3 cup device and circuit using a hall effect sensor and 18M2 chip. I am now at the stage where I need to think about programming. I have very little knowledge of picaxe, my only experience is a simple flowchart for a voltage detector.
I am trying to achieve a device with an LCD screen which can show 2 different displays. first display is continuous wind speed and then when a button is pressed, a screen will show gust speed (highest speed every minute).
For the first display I am planning on using 'count' to count the pulses in a second and therefor update the screen every second with the wind speed. I have set up the device so that 1 revolution per second is equal to 1Mph so this should be fairly easy.
I think the second display will be more difficult, so far my thoughts are to store the number of pulses counted within each second into the chip memory and then somehow use picaxe to select the highest value every minute and display this on the screen. I have not used an external eeprom memory so I understand I will be limited with what I can store.
for example, in the 1st second there are 15 revolutions (store the number 15)
reset counter and in the 2nd second there are 20 revolutions (store the number 20)
and so on....
within the minute the highest count is 40 so I want to automatically select this and display it on the screen and then reset the memory to start counting again.
I have been doing some research but i'm struggling to find any example code.
any help would be greatly appreciated.
P.S. this is only a for a college project and it has to be completed in a few weeks so I realise that there are many ways to improve my device and make it more accurate but unfortunately I wont have time.
Thanks
Garry
I am in the early stages of building an anemometer for a college project. I have built the 3 cup device and circuit using a hall effect sensor and 18M2 chip. I am now at the stage where I need to think about programming. I have very little knowledge of picaxe, my only experience is a simple flowchart for a voltage detector.
I am trying to achieve a device with an LCD screen which can show 2 different displays. first display is continuous wind speed and then when a button is pressed, a screen will show gust speed (highest speed every minute).
For the first display I am planning on using 'count' to count the pulses in a second and therefor update the screen every second with the wind speed. I have set up the device so that 1 revolution per second is equal to 1Mph so this should be fairly easy.
I think the second display will be more difficult, so far my thoughts are to store the number of pulses counted within each second into the chip memory and then somehow use picaxe to select the highest value every minute and display this on the screen. I have not used an external eeprom memory so I understand I will be limited with what I can store.
for example, in the 1st second there are 15 revolutions (store the number 15)
reset counter and in the 2nd second there are 20 revolutions (store the number 20)
and so on....
within the minute the highest count is 40 so I want to automatically select this and display it on the screen and then reset the memory to start counting again.
I have been doing some research but i'm struggling to find any example code.
any help would be greatly appreciated.
P.S. this is only a for a college project and it has to be completed in a few weeks so I realise that there are many ways to improve my device and make it more accurate but unfortunately I wont have time.
Thanks
Garry