We have now got Scratch to work with RoboHAT.
We needed to first install Scratch GPIO Plus. Then we created the Scratch program, see below.
Please note that AddOn should be set to “robohat”, all lower case.
Here is the algorithm that used the left and right line sensors to change the motor settings and steer the robot.
Lastly here is the configuration of the pins for RoboHAT in /opt/scratchgpio7/scratchgpio_handler7.py
Here also are the Scratch files for the PiRoCon controller with the Initio robot that we will modify to use with the RoboHAT: https://github.com/4tronix/PiRoCon