home..

Week 11 - networking

group page // repo source files // objectives

Contents

hero >

“wireless” mouse >

tried a few things this week:

driving a mouse with a wind sensor >

serial output from mouse client-side showing received data from wind sensor

taking inspiration from my project for inputs week, I switched to absolute mouse control, modified my code to act as a wifi client, and changed the inputs from an IMU to inputs received over TCP.

Gauri similarly added ip server capabilities to her wind sensor code. After a bit of iteration, we managed to pass messages between her wind sensor and my mouse board.

Unfortunately, we ran into some snags encoding the information server-side in a way that was reliably decoded client-side; I also had some bugs in the math. I think the math was an order of magnitude off, or otherwise interpretted as a fraction of the expected value. Needless to say, the mouse did react to the wind sensor, but the changes were very minute.

bacteria and influxdb >

utilizing the power of chatgpt, I experimented with ferrying data from a microcontroller to a timeseries database, influxdb.

the plan here was to create a communciation interface for bacteria that my friend, Kat, is working with in the lab!

unfortunately we ran into a snag and didn’t manage to get sensory input from the bacteria, hence random data sent to server.

full stack, from webserver to database to microcontroller to bacteria!

chatgpt helped a ton with the following and more:

transformers, homework in disguise

running influxdb docker container micropython code pushing POST requests to influxdb docker container

unfortunately, after much configuring, I concluded that I was either having issues with the firewall or I misconfigured something. as a backup plan, I created an account on influxdata.com and followed a quick tutorial to POST data to a bucket created on the server.

et voila, success on the cloud server!

first data sent via POST request changing the code to periodically send random data every 5 seconds

© 2023 Alan Han   •  Powered by Soopr   •  Theme  Moonwalk