Week2


 Week 2

Feb 10th

We retried to make Arduino function after the lab start.

After further research, browsing through multiple forums, suggestions around the error code include, we found that the Arduino ports being a main issue.

When we switched the Arduino to a personal computer and the Arduino ports show up, meaning library pc does not register Arduino.

However, when we using personal laptop with a proper port, the Arduino persists to refuse to upload the code.

So we searched further forums and online resources such as Arduino nano documentation, then we found the Arduino IDE is a potential issue as well. To prevent it, we switched the IDE from 1.8.19 to 1.8.3 an older model the code uploads the program without any error.

We redid the simple blinking light program, the LED flashes in the given sequence. We integrated the sound sensor with aid of a diagram. The sound sensor records the intensity of sound in the room and is displayed in the program.

We added LED, modified code to turn on LED when a certain sound intensity was recorded and tweaked sensitivity of sensor using tweaker and recorded change. To get a better intensity reading, we modified code and added more LEDs.

Then we tried uploading code but got the same uploading error. We disconnected everything and tested each additional LED sequentially to find the issue. We added an addition LED branch i.e., resistor, led and connections when one branch worked. The LED’s now turn on, the issue was the pin connections and defining them in the program.

After that we decided to integrate the Arduino display. However, we encountered a new issue that the LED display code cannot be compiled. The library given in the display documentation does not work. We solved the problem by opting for a similar library as substitute. It is <LiquidCrystal_I2C.h> by Frank de Brabander.

The next question we faced is the library print function only prints one letter at a time onto the screen. We found the library's source code must be changed to resolve the issue when we investigating online forums. Finally, we made the write function return 1 and not 0 fixes the issue.

We uploaded simple “Hello” program to LED display and tweaked the contrast, the Arduino displays the program successfully.

In conclusion, we need the grove speech recognizer to detect a person’s speech as the sensors only measure intensity.

At last, we ordered the required part for the following experiments.

Comments

Popular posts from this blog

Week 5

Week4

Week3