Node-Red: DRAFT Motor Driver Flow Car Prototype DRAFT

 

[{"id":"c3004570.c5fdb8","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"69b618c6.62b938","type":"exec","z":"c3004570.c5fdb8","command":"sudo python /home/pi/Downloads/Raspi_Car/fwd.py","addpay":false,"append":"","useSpawn":"true","timer":"4","oldrc":false,"name":"","x":630,"y":200,"wires":[[],[],[]]},{"id":"5642fa90.d3aa54","type":"exec","z":"c3004570.c5fdb8","command":"sudo python /home/pi/Downloads/Raspi_Car/bwd.py","addpay":false,"append":"","useSpawn":"true","timer":"4","oldrc":false,"name":"","x":640,"y":280,"wires":[[],[],[]]},{"id":"f8d17f70.3fbf4","type":"exec","z":"c3004570.c5fdb8","command":"sudo python /home/pi/Downloads/Raspi_Car/stop.py","addpay":false,"append":"","useSpawn":"true","timer":"4","oldrc":false,"name":"","x":640,"y":360,"wires":[[],[],[]]},{"id":"1cc3c9fb.0cd206","type":"exec","z":"c3004570.c5fdb8","command":"sudo python /home/pi/Downloads/Raspi_Car/turn_r.py","addpay":false,"append":"","useSpawn":"true","timer":"4","oldrc":false,"name":"","x":640,"y":440,"wires":[[],[],[]]},{"id":"826cb173.39cc1","type":"exec","z":"c3004570.c5fdb8","command":"sudo python /home/pi/Downloads/Raspi_Car/turn_l.py","addpay":false,"append":"","useSpawn":"true","timer":"4","oldrc":false,"name":"","x":640,"y":520,"wires":[[],[],[]]},{"id":"3d71630b.6baaec","type":"ui_button","z":"c3004570.c5fdb8","name":"","group":"c892232.a6b64e","order":0,"width":0,"height":0,"passthru":true,"label":"FWD","color":"","bgcolor":"","icon":"","payload":"1","payloadType":"str","topic":"","x":350,"y":200,"wires":[["69b618c6.62b938"]]},{"id":"7403b905.981538","type":"ui_button","z":"c3004570.c5fdb8","name":"","group":"c892232.a6b64e","order":0,"width":0,"height":0,"passthru":true,"label":"BACK","color":"","bgcolor":"","icon":"","payload":"1","payloadType":"str","topic":"","x":350,"y":280,"wires":[["5642fa90.d3aa54"]]},{"id":"26b12fe1.98027","type":"ui_button","z":"c3004570.c5fdb8","name":"","group":"c892232.a6b64e","order":0,"width":0,"height":0,"passthru":true,"label":"STOP","color":"","bgcolor":"","icon":"","payload":"1","payloadType":"str","topic":"","x":350,"y":360,"wires":[["f8d17f70.3fbf4"]]},{"id":"670ea129.3442c","type":"ui_button","z":"c3004570.c5fdb8","name":"","group":"c892232.a6b64e","order":0,"width":0,"height":0,"passthru":true,"label":"RIGHT","color":"","bgcolor":"","icon":"","payload":"1","payloadType":"str","topic":"","x":360,"y":440,"wires":[["1cc3c9fb.0cd206"]]},{"id":"df8ab935.62a7b8","type":"ui_button","z":"c3004570.c5fdb8","name":"","group":"c892232.a6b64e","order":0,"width":0,"height":0,"passthru":true,"label":"LEFT","color":"","bgcolor":"","icon":"","payload":"1","payloadType":"str","topic":"","x":350,"y":520,"wires":[["826cb173.39cc1"]]},{"id":"148d913d.0df89f","type":"ui_template","z":"c3004570.c5fdb8","group":"408f9230.25cedc","name":"","order":0,"width":0,"height":0,"format":"<img name=\"main\" id=\"main\" border=\"0\" width=\"640\" height=\"480\" src=\"http://192.168.43.209:8081/videostream.cgi\">","storeOutMessages":true,"fwdInMessages":true,"templateScope":"local","x":200,"y":140,"wires":[[]]},{"id":"d82c04e8.1aea98","type":"inject","z":"c3004570.c5fdb8","name":"","topic":"","payload":"1","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":210,"y":200,"wires":[["3d71630b.6baaec"]]},{"id":"d586c6c3.3b7308","type":"inject","z":"c3004570.c5fdb8","name":"","topic":"","payload":"1","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":210,"y":280,"wires":[["7403b905.981538"]]},{"id":"53924a77.ccdcc4","type":"inject","z":"c3004570.c5fdb8","name":"","topic":"","payload":"1","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":210,"y":360,"wires":[["26b12fe1.98027"]]},{"id":"1194b926.7fb467","type":"inject","z":"c3004570.c5fdb8","name":"","topic":"","payload":"1","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":210,"y":440,"wires":[["670ea129.3442c"]]},{"id":"a4917833.2d9588","type":"inject","z":"c3004570.c5fdb8","name":"","topic":"","payload":"1","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":210,"y":520,"wires":[["df8ab935.62a7b8"]]},{"id":"12245169.5658df","type":"exec","z":"c3004570.c5fdb8","command":"sudo shutdown","addpay":false,"append":"","useSpawn":"true","timer":"4","oldrc":false,"name":"","x":520,"y":680,"wires":[[],[],[]]},{"id":"89384bbd.030b48","type":"ui_button","z":"c3004570.c5fdb8","name":"","group":"c892232.a6b64e","order":0,"width":0,"height":0,"passthru":true,"label":"Shutdown Pi","color":"","bgcolor":"","icon":"","payload":"1","payloadType":"str","topic":"","x":330,"y":680,"wires":[["12245169.5658df"]]},{"id":"255b9f7d.6a346","type":"inject","z":"c3004570.c5fdb8","name":"","topic":"","payload":"1","payloadType":"num","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":170,"y":680,"wires":[["89384bbd.030b48"]]},{"id":"c892232.a6b64e","type":"ui_group","z":"","name":"Default","tab":"f12bfb77.9e80e8","disp":true,"width":"6","collapse":false},{"id":"408f9230.25cedc","type":"ui_group","z":"","name":"Group 2","tab":"f12bfb77.9e80e8","order":2,"disp":true,"width":"12","collapse":false},{"id":"f12bfb77.9e80e8","type":"ui_tab","z":"","name":"Home","icon":"dashboard"}]

original source: https://geekworm.com/blogs/raspberry-pi/faq-of-raspberry-pi-full-function-motor-hat-robot-expansion-board

  • Download this zip file on your raspberry pi
  • Unzip this folder in your downloads folder

Raspi_Car.zip

Use this tutorial to stream video on the dashboard:

https://t3alliance.org/rpi-node-red-streaming-rpi-camera-to-dashboard/

Use template node:

image_pdfGenerate PDFimage_printPrint
Posted in Uncategorized.

Leave a Reply