dsmurl / the-system-controller-4

This is the working code of the System Conroller V4 designed for grass roots industrial systems management.
GNU Affero General Public License v3.0
2 stars 1 forks source link

Simple Pin Mapper #28

Open dsmurl opened 9 years ago

dsmurl commented 9 years ago

Branch - Simple Pin Mapper

We need a spot in the settings to align a simple pin mapper to the Beagle Bone Black. So inside the system controller UI and code, we need to create the concept of a list of Devices and Sensors. We will cap each for alpha. These 10 Devices and 7 Sensors will need to be mapped to actual pins on the Beagle Bone Black. In the settings, there should be a section somewhere that lists the Devices and Sensors with a drop box beside each where a list of available pins will appear. Each Device can be assigned or reassigned to a "digital" pin (device pin) or "analog to digital input" pin (A2D sensor pin). only one Device or Sensor can go to a single pin so that may be tricky as each selection will adjust that option out of the other drop boxes.

These settings can be listed in the settings table in the DB. Typically, the docs for this project will give a safe range of pins for the Devices and a safe range for the Sensors as some pins on the Beagle Bone Black are reserved. This basic set of defaults needs to be in an INI file and pulled into any pins that are not re-assigned through the UI. These Devices and Sensors that are in default pin mode should show something like their current default setting and then "default".

Something like this,

Device 1 - D42 (default) Device 2 - D43 (default) Device 3 - D44 (default) Device 4 - D45 (default) Device 5 - D46 (default) Device 6 - D47 (default) Device 7 - D48 (default) Device 8 - D49 (default) Device 9 - D34 // Not default from ini, was user set Device 10 - D51 (default)

Sensor 1 - A07 (default) Sensor 2 - A08 (default) Sensor 3 - A14 // Not default from ini, was user set, this selection made A09 available Sensor 4 - A10 (default) Sensor 5 - A09 // Not default from ini, was user set; available because of Sensor 3 choice Sensor 6 - A12 (default) Sensor 7 - A13 (default)