All of this look amazingly helpful John! And agree with you on the CAPS
I think worried_guy also very helpfully responded on a separate post on my questions. So thanks upfront to both of you for the super-quick replies.
2 follow on questions from my side:
What would the example progam for a line sensor look like? I didn’t see a graphical example of that in the link you shared. Also, can I use a GrovePi Line Finder (the blue one) instead of the Dexter line sensor (the red one)? I am asuming even the GrovePi Line Finder has to be connected to the i2c port of the GPG?
I went through the GoPiGoScratch.py program as well to understand the key boadcast() functions/messages. I got most of it and checked with the link you shared. But curious to know what messages to use when I want to use a new sensor, say a temperatue sensor, or a humidity sensor, or a fire sensor etc. I didn’t see those covered in the python progam. Is thee some kind of addition we need to do in the GoPiGoScratch.py program itself?
For some reason, my GoPiGo had a total breakdown yesterday and I just can’t get it to work properly any more.
Just before that, I had successfully witten a simple distance finder program using the ultrasonic sensor, and tested it - the car would travel to a model “parking lot” and stop 1 cm away. However, then I tried to switch the power source - from the high-amperage phone charger I’d been using thus far, to the battery pack in the set. Immediately, a few things happened:
(a) My computer lost the SSH wireless connection I’d set up with the GPG. I could no longer connect to VNC through a browser using http://dex.local, even though I could ping dex.local successfully from my cmd prompt. Basically, the page opens up once in 5 tries, and even then when I click on the ‘VNC’ link on the left side of teh page, instead of opening up to the password prompt at the top middle, it hangs by showing a message like “initiating VNC handshake”. So I went ahead and downloaded VNC Viewer, connected the GPG to the laptop using a LAN cord, and tried again. Here too I couldn’t get 100% success but could connect only 1 in 3 times. The seamless, wireless, bowse-based connection I experienced over the prior 1 week is completely gone!
(b) Scratch has completely stopped working on the GPG. None of the progams, including the pre-installed example programs, work any more. However, I am able to get at least the basic_test_all Python program to work. But the whole point of getting the GPG was to continue my son’s Scatch education by interfacing it with the physical wold, and all the programs we had written and tested so far ae unusable right now. By the way, I disable and e-enable the remote sensors whenever I open a program in Scratch.
© My Ultrasonic sensor (a GrovePi one) started getting SUPER HOT (apologies for the CAPS here) at around the same time. It was not in use because the Scratch programs using it stopped working, as I mentioned above. It started becoming so hot that my son and I almost got scalded whenever we tried to touch it. Is it a problem with the sensor itself or something bigger that is going wong here? (By the way, I have a basic SR-04 ultasonic sensor as well, but they have these 4 protruding pins instead of the neat GrovePi socket, and I do not know wich wire to use to connect these to the GPG A1 port - perhaps you could guide me?)
Sorry for a really long post, but I am completely lost as to why petty much everything went south without warning. Pls help reverse this and if posible help me understand the cause so I can avoid it in the future. I know I asked a whole bunch of questions - would tremednously appreciate if you could spare the time to clarify and educate.
Thanks and cheers!