Professional Documents
Culture Documents
Week 1&2 Progress Report
Week 1&2 Progress Report
What was done: 1. Getting Started with Beaglebone 2. Read in Analog Inputs & Display on Output Console, Cloud 9 IDE 3. Testing XStream Using a Loopback What was attempted: 1. Getting Beaglebone to serial transmit via UART_RT and UART_RX
Figure 1.2 Code for blinking an external LED We used Pin3 of Port8, which corresponds do GPIO1_6 located to send a logic 1 and logic 0 to the LED to blink it.
Figure 2.0 Codes for reading in from all analog inputs After debugging and running, we managed to read in from all the analog pins and display the values in the "Output Log".
The voltage that was read should display 1.8V. However, the maximum value that will displayed is 4096 according to online sources. Thus, 1.8V corresponds to 4096. We wrote another program that would translate the readings to the actual voltage. The program is shown below:
Figure 2.2 Codes and results to reading in and displaying the actual voltage.
Figure 2.3 Close-up of "Output Log" Figure 2.3 shows the readings when there the analog pins do not have any inputs. After connecting Pin32 to Pin33 of Port9, we can see the reading when1.8V is inputted to Analog Input4 ie.ADC4. It shows the following results:
Figure 2.4 Readings when ADC4 is connected to 1.8V We see that ADC4 shows a value around 4096, and the actual voltage is close to 1.8V.