Instructions for using python file TVRTest1.py The file can be imported into a robot program to provide 4 variables that can be set by a TV remote, and saved to (and read from) file "params. py". import TVRTest1 The TVRTest program checks the 4 switches (sometimes used for setting speed). 0-130 : program does nothing. 150: TVR sets the values from params.py 140: TVR waits for user input before normal program runs. The 4 data items in params.py are basespeed, efactor, dfactor, count. It is best to copy values from these to your own values in your program. e.g. basespeed = TVRTest1.basespeed mult = TVRTest1.efactor/100 dfactor = TVRTest1.dfactor stopcount = TVRTest1.count Using the TV remote controller. =============================== After switch-on, if TVRTest1 is running, it outputs a long pulse on the LED. Respond by pressing 'mute' once or twice until a short pulse is returned on the LED. This is because the Infra-red adaptor can output rubbish to the Pico when the robot powers up. To set the speed:- Key in a value e.g. '7' '5', and save it on basespeed by pressing 'Vol+'. To set other data items:- Use 'Vol-' for efactor - 'ch+' for dfactor, and - 'ch-' for count. But if you press one of these 4 keys without entering a number it will just print the current value To display the current value of all 4 variables, press 'av' To save all values to file "params.py", press 'OK'. To re-read the values from "params.py", press the green key ( it reads this file on startup) To exit TVRTest1 and continue with your program, - press the power button (top right). If you run this on Thonny, you will see the actions printed on-screen. John Fisher 28/3/2022