orchestracities / lego-diorama-usi-2022

This repository hosts code, configuration and documentation to deploy Orchestra Cities lego diorama.
Apache License 2.0
0 stars 0 forks source link

8 trafficcounter raspberrypi #22

Closed Solargi closed 1 year ago

Solargi commented 1 year ago

reading both VCNL 4010 and IR Obstacle Sensor each with his car counter which is publish on the respective topics. beware on how to correctly connect the VCNL to the Grove shield, the instruction are in the code initial note, the pin are defined in the code.

some configurable parameter (ex: protocol, sensor ids,..) are defined in the code, next to their definition there is the commented code that will take the values from a config file, once a definitive and correct config file is defined, just substitute the parameter with the commented part and update the fields accordingly to set the value from the config file.

the file also contains some print statement that are useful for debugging purposes