Page 1 of 1

Where to start?

Posted: Sat Jul 22, 2023 3:27 pm
by DiabeticProgramming
Hello all you wonderful people,
So, I'm here to learn and I've got goals I'd like to achieve but I need a bit of a kickstart.

I'm a diabetic and I recently got to play around with a Dexcom G6 which is a little sensor that measures my bloodsugar.

I have the sensor attached and connected to my phone through something called Xdrip.

When Xdrip received my bloodsugar value I send that value to a MongoDB.

On my windows machine I made a small python script that gets the latest entry in the MongoDB and displays the value in my toolbar.

All that works and it's awesome!
Now, I'd like to have a little display next to my bed where that exact same value is displayed.

My girlfriend's boss gave me a ESP32S and a little monitor. I managed to (or so I believe) flash the chip, connect it to my computer and through Visual Studio Code using the extension DeviceScript.

But, I'm pretty much lost there. I have the chip and I have the display but I have never fiddled around with these types of things.

How would I proceed with simulating or deploying something to the chip and maybe more importantly, what equipment do you guys use to connect the display to the chip, I need to solder or whatever it's called but I'm afraid og connecting the two devices wrongly and having to, buy new ones?

Lots of questions but I'm a completely newborn to all of these chips and stuff ;)

Is there a "beginners guide to what to purchase and use"?

I hope I'm not too vague here and please bear over with me.

Much love,
Mike

Re: Where to start?

Posted: Sun Jul 23, 2023 5:27 am
by ESP_Sprite
DeviceScript is fairly new and from what I hear doesn't have too many drivers yet. Probably a better idea to use something tried and true; e.g. the Arduino support for ESP chips is pretty good.

Depending on the hardware, you may be able to make the connection with so-called 'DuPont wires'. Those can simply be plugged onto headers, no need for soldering.

Re: Where to start?

Posted: Sun Jul 23, 2023 6:09 am
by Agree007
If you want to start with Arduino on your ESP32, this link is very useful: https://randomnerdtutorials.com/install ... tructions/

Re: Where to start?

Posted: Sun Jul 23, 2023 1:01 pm
by DiabeticProgramming
That is awesome! Thank you so much guys! I got my ESP32 connected to Arduino and successfully made the LED blink.
It took a while before I figured out I had to press the BOOT button upon uploading the code, luckily that was described in the post mentioned by Agree007.

I do have one final question: Is it possible to simulate the code somehow? The thing is, I don't have my LCD connected to my chip so I can't verify if the board had internet access and if it's able to receive the latest entry in my MongoDB.

Is there a way to write my code, execute it and simulate the result?

/ Mike

Re: Where to start?

Posted: Sun Jul 23, 2023 1:02 pm
by ESP_Sprite
There's a very good online simulator that can also simulate simple hardware and Internet connectivity.

Re: Where to start?

Posted: Sun Jul 23, 2023 1:04 pm
by DiabeticProgramming
You guys rock! Thank you so much for the swift help and guidance.
I'll be off trying to build something. Thank you!