Skip to content

Amey More's Final Project Video

Amey More edited this page Dec 12, 2023 · 2 revisions

Overview

This page provides an overview of Amey More's contribution to the AESD Final Project - Health Monitoring System in collaboration with Chandana Challa.

Video Outline

Demo Video Link : Demo

The video demonstrates:

  • Project Overview
  • Project Block Diagram
  • Individual Project Contribution
  • Hardware Setup and running demonstration

Challenges

My most difficult challenge when implementing this project were:

  1. One of my tasks for the project was to enable SPI in Buildroot for Raspberry Pi. To enable SPI, the config.txt file should be edited to include SPI enabling. There are multiple places where the config.txt file is present and I faced an issue because I was editing the wrong config.txt file. The correct file is found in "buildroot/board/raspberrypi/config_3.txt". After this, my SPI drivers worked correctly.
  2. The second challenge I faced was to read ADC through SPI. I was initially using TLC0838 8-channel 8-bit ADC IC. I observed the SPI signals on the logic analyzer and the communication was correct but the ADC read value was very unstable and random. I figured my IC would have been damaged so I used another ADC which I had readily available with me MCP3002 2-channel 10-bit ADC and the ADC read function worked correctly with this IC after changing a few transmit bits according to the datasheet.
  3. Lastly, we faced an issue with MQTT communication between the client and server. When the client python script was run, it generated a "[Errno 111] Connection refused" error. We found out this was due to configuration on the server side. So after running Buildroot build we edited the /bin/mosquitto/mosquitto.conf file and uncommented a few lines. After that, we restarted the config and the server started receiving messages from the client.

Lessons Learned

The most important topics I learned from this project were:

  • Building Buildroot images for Raspberry Pi.
  • Enabling I2C and SPI for Raspberry Pi using Buildroot.
  • Interfacing sensor and developing SPI code to interact with SPI Port.
  • Enabling WiFi and MQTT packages for RaspberryPo Buildroot.
  • Using Python scripts for MQTT communication.
  • Embedding MQTT command in C code to send sensor data.

Clone this wiki locally