joeycastillo / Sensor-Watch

A board replacement for the classic Casio F-91W wristwatch
Other
1.17k stars 233 forks source link

How to get serial output from USB? #399

Closed RubenSandwich closed 4 months ago

RubenSandwich commented 4 months ago

I just got my sensor watch a week ago and have already started developing for it. (I just finished creating a watch face.)

I am now interested in using the accelerator data from the lis2dw to create a simple pedometer using existing open source algorithms. However because getting accurate reading from this sensor requires the actual watch board, and not just he simulator, I am struggling to debug certain parts of my code.

So my question is, how do I get serial output from the watch board when plugged into it with USB? (So I can view my printf statements.)

wryun commented 4 months ago

It should come up on your computer as a standard serial port when you connect it via USB, and you can use the terminal program of your choice to communicate with it.

What OS are you using?

By the way, if you got your sensor watch a week ago I'm guessing you got the sensor watch lite, so it doesn't have the port to add an accelerometer. Not sure if you've already hacked your way around this :)

(PS might be good to open this sort of thing in 'Discussions' next time)

RubenSandwich commented 4 months ago

I was able to get serial output with minicom. I'm to new to embedded development, so forgiven my ignorance.

You're right that I have a sensor watch lite. When looking through the code I got confused between OSO-SWAT-B1 (the sensor watch lite board) and OSO-SWAB-B1-00 (the upcoming sensor board) which has the LIS2DW12TR accelerometer on it.

It does look like it might be possible to wire the sensor watch lite to the LIS2DW12TR sensor board with the pins:

However, I think micro soldering to the microcontrollers unused pins is currently beyond my soldering ability.