BAS Hat with updated software selectable inputs

There doesnt appear to be any documentation on HOW to software select which type of input is being used . this makes the nodes in node red effectively unusable. Any plans to update anything for usability, how about just some documentation on how to use this new feature.
 

alexburcea

Moderator
Staff member
Here is what you need to do to change the default input type which is 0-10V input:
1) Update the megabas command, instructions in the readme:
~$ cd megabas-rpi/
~/megabas-rpi$ git pull
~/megabas-rpi$ sudo make install
2) run the command "megabas 0 incfgwr <channel> <0/1/2>"
where channel can be from 1 to 8 and value 0 = 0-10V input; 1=1k thermistor input; 2=10k thermistor input
For more info on the command option type "megabas -h incfgwr" and "megabas -h incfgrd"

The configuration is saved in the card nonvolatile memory so you only need to rerun this command if you decide to change the input type.
 
Top