Sounds good, thanks John. Another question on an error I’m receiving -
Has anyone else seen this before? I’m wondering if I need to download the drivers for the Lego Touch and Color sensors, or if I need to get the whole M&M sorter built out before I can test it a little bit…thoughts?
Hey guys, just wanted to follow up on this thread. Is anyone at Dexter reading these posts? Are there any more logs or error messages I can provide to help troubleshoot this?
The original was written prior to the release of the BrickPi3, and since then several things have changed. One of the main things is how sensor errors are dealt with. Previously there was a value returned from get_sensor that would specify any errors, but now get_sensor raises an exception if there is an error. The updated project program has been modified to deal with the exceptions.
Some of the values in the code are specific to the hardware being used, and will need to be calibrated/adjusted for your hardware. On line 11 you can specify the actual frequency of your PivotPi (probably somewhere between 59 and 64Hz). On lines 74 through 76 you can set the calibration values for the color sensor (minimum and maximum RGB values). Optionally you can also change the ports on lines 15 through 18.
@JohnC & @Matt - thank you guys so much for getting back to me! I really appreciate it.
@Matt, thanks for the updated repo, and everything you said makes complete sense. I’ll give that a shot. My 10 year old son is really enjoying this project (and so am I) and I didn’t want him to lose his interest!
Thanks again, and I’ll share pics on twitter once it’s all done!