Docb
Moderator
- Relationship to Diabetes
- Type 2
Good morning everyone.
BG 5.3
BP 119/76
Pulse 63
Got up at 4am and spent 2 hours trying to suss out a coding error in my App where something should have been displayed but wasn't. I went into every nook and cranny in the relevant parts of the code. Almost gave up. The code seemed fine. It suddenly dawned on me that late last night I had resized the area where the item should have been displayed...bingo...it turned out to be just one character space too small. Nothing to do with the code at all. Doh!!!
What a lot of wasted time. Feels good now that I have sussed it out though.
Have real empathy with your plight @Gwynn. Spent a couple of hours yesterday only to find that the code did not work because I had omitted a colon from a quite complicated statement extracting the temperature from the output of a sensor.
For reasons that are too complicated to go into, I am trying to make an ultrasonic tape measure using one of the ultrasonic sensors that are fitted to those doors that open when you approach them. This involved some breadboarding and devising python code on a raspberry pi to read the sensor. Got that done but had the problem that the measurements need to be corrected because the speed of sound is dependent on temperature. So, temperature sensor went onto breadboard and more python code devised to read it. Thats where the missing colon was one of the bugs encountered. Next problem was to integrate the ultrasonic sensor code with the temperature sensor code. That has now been done and debugged and I am now confident that the ceiling is 173 cm from my desk. I have an ultrasonic tape measure with temperature compensation.
Next problem is to make it portable, there is limited fun in measuring the height of your ceiling. First problem is to get it off the breadboard and into a box and second problem is to make it independent of being plugged into the Pi. Got some ideas about that but then I will need to write and debug more software. There is also the problem of figuring out why the ultrasonic sensor coupled to a Pi gives different readings to when it is controlled by an arduino. Makes you wonder how it would behave if controlled by a PI Pico.
Who needs wordle or saduko when you have got a computer.
By the way, got a 7 this morning. I'm wondering if you can take the back off my Accucheck Nano and wire it into a raspberry pi.