|
|
|
@ -18,16 +18,12 @@ Configure UART1, UART2 and UART4 ports with this command
|
|
|
|
|
config-uart-pins.sh
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Connect sensors to Beaglebone like in the next diagram.
|
|
|
|
|
Connect sensors to power supply and Beaglebone like in the next diagram.
|
|
|
|
|

|
|
|
|
|
|
|
|
|
|
Then you can run the code wih this comand:
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
./daq
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
If you need to make any changes to the code you can recompile again with this command:
|
|
|
|
|
```
|
|
|
|
|
gcc daq.c -o daq
|
|
|
|
|
./daq <time> <sampling period>
|
|
|
|
|
```
|
|
|
|
|
change <time> and <sampling period> with your own values.
|