First post


I have a few electronics projects I'm working on- 

  1. hardware GPS data logger
  2. GPS data logger app (because I was told hardware is too clunky..)
    1. Temp logger
    Lets start with the hardware GPS data logger:
    This thing was supposed to be simple, but proved a challenge. Using an ESP32 + GPS module, and a few other little bits like a battery, RGB LED and a button. I thought this would be dead simple. The idea was, when you park your vehicle at home, Location data + metrics for your trip would upload, given your WiFi network is accessible from outside. 
    The flow goes like this:


    1. Start trip (the device is plugged into your cars USB port). It waits for a GPS signal before logging starts.
    2. Once GPS signal is locked, location information is logged every second. 
    3. When you turn off the car, the ESP32 looks for your WiFi network. If it doesn't, it closes the GPS file and goes to sleep. If it does find the network, it will upload the CSV (and any previous CSV's) to an influxDB and then go to sleep (device has a battery so the car power doesn't interrupt the upload process). 
    The influxDB is pretty simple, you have an org, buckets, device, and that gets pushed to Grafana. I chose Grafana because there is a geomap chart type to show trips. This was the hard part. I could not get a data query to track the trip # based on the name of the file (boo) so I updated the firmware of the ESP32 to include a trip #. I have no clue how I got it to work, but ChatGPT was able to figure it out. Sweet.

    I wanted to have another chart though- how many miles/ day were traveled in a bar chart, but I wanted something like this: 
    This posed a huge challenge, and I've learned that my FW needs to share the Δ / location in miles. bummer..

    I got discouraged and needed to realign with what I wanted to do. I went totally nuclear and started on a new project, after my buddy said that hardware is too clunky and finicky, and to just make an app. so that's what I set out to do.

    To be fair, I had no idea wtf I was doing. ChatGPT wrote the WHOLE thing, and it worked for the most part. The idea was simple:
    1. A page with a button to start/stop a trip, a page of past trips, and a page with settings
    2. Press start trip to start tracking, and stop when you're finished, dead simple right?
    3. the past trip page generates a list of trips
    The cool part about the list of trips, is if you click on the list of trips, it shows metrics such as total trip distance, max speed, avg. speed, and a map of your trip. There was also a share function that allowed you to share your trip CSV. sweet!

    The part that tripped me up though, was how to start "automatic" tracking. I wanted a user to not have to remember to start the trip. One option that was brought up was to use BT as a "start"- meaning when audio was transmitted via BT, it would act as a trigger to start recording.
    This proved to be a challenge, Because I realized that people use bluetooth audio for other things besides a car trip (like working out at the gym, work playlists, etc). And not everyone has bluetooth in their car..
    Back to the drawing board I guess?

    The next project was kinda fun. It;s like 95% done, I just want to add more sensors.
    It's a temp sensor, that uses a BME680 + some 1-Wire temp probes to monitor specific points. Im still working on a use case, but I mostly believe this would be valuable in a server rack, a greenhouse, industrial applications, etc.

    it works like this: ESP32 > InfluxDB > Grafana. Simple right?

    So there is no issue right now. I need to add more sensors to the ESP32 + make FW changes, update Grafana, and if it works out I'll spin up a PCB.

    I also need to fix my motorcycle. It;s been sitting in the rain since... October.. I miss riding. I need to fix the turn signals, the subframe, and a few panels (maybe). 

    I think that's it for today. 
    Thanks.

    Comments

    Popular Posts