From 793ccc1d5620e6a1e4c0b98da012f681b22c3cd1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sayeth=20Rodr=C3=ADguez?= Date: Fri, 29 Nov 2019 22:34:14 +0000 Subject: [PATCH] Add README.md --- README.md | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..3afd680 --- /dev/null +++ b/README.md @@ -0,0 +1,44 @@ +# DAQ System with Beaglebone Black using serial communication + +This repositori contains C code to implement a DAQ system with a Beaglebone Black using serial communication with sensors. +Sensors used in this system are: +GC-0017 (Cabron dioxide) +CM-31910 (Carbon monoxide, and temperature) +OX-0052 (Oxigen) + +### Installing + +To get this repositore you just need to clone it to your Beaglebone Black + +``` +git clone 'url' +``` + +### Utilization + +To run this code and commincate with sensors, you first have to configure UARTs ports, configuring GPIOs as uart running the commands +``` +config-pin 9_24 uart +config-pin 9_26 uart +``` +to configure UART1 port +``` +config-pin 9_21 uart +config-pin 9_22 uart +``` +to configure UART2 port, and +``` +config-pin 9_11 uart +config-pin 9_13 uart +``` +to configure UART4 port. +Then you can run the code wih this comand: + +``` +./daq +``` + +If you need to do any change to the code you can recompile again with this command: +``` +gcc daq.c -o daq +```