I've tried to use the block code you provided but I ended up with an out of memory error.
I also have an algorithm I've made.
What I have to do is check for a belt attachment (hall effect sensor on C7) and at the same time have a weight on a scale that is literally connected to the LCD connections (A8) (should send a current out when the weight is above like 7kg). Then when a second hall effect sensor is tripped off (from having a magnet to none) then make a sound to remind someone to remove the belt sensor and the weight and then the sound should stop. Also the sound should alternate 5 seconds on and 5 seconds off.
If it would help I can include pictures of my setup.
Would the device work better with the actual Javascript code? I guess I could try.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
I've tried to use the block code you provided but I ended up with an out of memory error.
I also have an algorithm I've made.
What I have to do is check for a belt attachment (hall effect sensor on C7) and at the same time have a weight on a scale that is literally connected to the LCD connections (A8) (should send a current out when the weight is above like 7kg). Then when a second hall effect sensor is tripped off (from having a magnet to none) then make a sound to remind someone to remove the belt sensor and the weight and then the sound should stop. Also the sound should alternate 5 seconds on and 5 seconds off.
If it would help I can include pictures of my setup.
Would the device work better with the actual Javascript code? I guess I could try.
Thanks for your help so far!
1 Attachment