123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|92|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Off Topic -> SpinalWatch

Page : 1 2 Next 3 4 5 6 7 8 9 10
Prev
Sun, 31 Jan 2021, 11:10
spinal
hmmmm, if a smart watch gets constant updates over bluetooth from a phone, technically it wouldn't NEED a real time clock chip would it? just keep counting by itself and have the phone tell it the correct time every time it sends any kind of update.....

-=-=-
Check out my excellent homepage!
Sun, 31 Jan 2021, 11:10
Jayenkai
.. are you making a watch?!
Sun, 31 Jan 2021, 11:59
spinal
Just thinking out loud for now
Sun, 31 Jan 2021, 12:21
Jayenkai
It's probably better to have the device "tick" for itself. Constantly checking would drain its own, and the phone's battery.
You'd also want to account for, for example, the user leaving their phone in the kitchen whilst they make a trip to the bathroom, which may momentarily sever the connection.

But a periodic (hourly?) check wouldn't be out of the question..

I know that my own watch does a LOT of data transfer, using "Bluetooth Low Energy".. maybe look into that..?



-=-=-
''Load, Next List!''
Sun, 31 Jan 2021, 12:34
spinal
Oh, no I wasn't think the phone would continually tell the watch what time it is. More like when a notification is sent, double check that the time is correct. Any chip can count milliseconds accurately enough to keep correct time for a good couple of days.

Something like phone -> watch : your friend just sent you a text, oh and it's currently 'today' at 'time' o'clock.

-=-=-
Check out my excellent homepage!
Sun, 31 Jan 2021, 12:38
Jayenkai
Yeah, that should work fine.
If you avoid telling the user the seconds, too, you can get away with it for longer

-=-=-
''Load, Next List!''
Mon, 01 Feb 2021, 06:51
spinal
hmmm, the bluetooth module that I used that time for my snes controller is refusing to respond. I remember having a lot of trouble with this back then, but can't find any of the code

-=-=-
Check out my excellent homepage!
Tue, 02 Feb 2021, 08:38
spinal
Hmmm, can now connect the bluetooth module and send 'this is the time' and 'this is the date' packets to the arduino no problem.
the only issue now, is that an arduino pro micro doesn't have anywhere near enough RAM or flash to store a 240x240 image image for a background!!

I tried adding a microSD card into the mix, but reading the SD card doesn't seem to play nice with the screen

-=-=-
Check out my excellent homepage!
Tue, 02 Feb 2021, 09:03
Jayenkai
How fast can it go? Could you compress the bg, or something?

-=-=-
''Load, Next List!''
Tue, 02 Feb 2021, 09:16
spinal
How fast can it go?


Currently I've got it going at about 60 seconds per minute, I figured that's a good speed for a clock

-=-=-
Check out my excellent homepage!
Tue, 02 Feb 2021, 09:25
Jayenkai
LOL.. I meant how much processor time is left to decompress an image.. I expect you'd have to do it frequently, so it shouldn't be anything too taxing for the device, or it might not keep good time.

-=-=-
''Load, Next List!''
Tue, 02 Feb 2021, 09:36
spinal
The timer is on an interrupt to make sure it actually keeps time, it's actually the same interrupt that fires the millisecs() counter, so no matter what, the time is correct.
As for space, even for a compressed image, there's almost none a 240x240 1bpp image is 7200 bytes, , the arduino I have has only 2560 bytes space...

-=-=-
Check out my excellent homepage!
Tue, 02 Feb 2021, 09:38
Jayenkai
Jeebus!!!
Tue, 02 Feb 2021, 10:03
spinal
As for downsizing the device, probably a no go also. The easiest solution is a Beetle BLE, which uses the same atmega chip as my arduino nano, which I can't get working with the screen, not only that, it has even less flash.

-=-=-
Check out my excellent homepage!
Tue, 02 Feb 2021, 10:36
Jayenkai
What size are you aiming for? R-Pi Pico's just over 5cm..

-=-=-
''Load, Next List!''
Tue, 02 Feb 2021, 12:14
spinal
Was thinking as small as possible. I'll probably just leave it alone for now, there seems to be a good reason that Arduino smart watches aren't really a thing
😎

-=-=-
Check out my excellent homepage!
Thu, 04 Feb 2021, 10:19
spinal
hmmm, got screen working ok on the nano, got sd card to read 'usually' on the nano. try to read image file from sd card and draw on screen...

https://github.com/spinalcode/st7789-nano-sd

Results...
sometimes draws the first few lines from the image, but 99.9% of the time just draws white. So it's not reading the file properly. Not only that 90% of the time it corrupts the file (even though it isn't writing a damn to the card, it literally opens one file for reading) which then I have to faf about forcing windows to format it, which it isn't happy with one bit. I have a feeling that the arduino has killed the sd card.

-=-=-
Check out my excellent homepage!
Thu, 25 Feb 2021, 04:09
spinal
Progress =

Arduino nano + bluetooth module + 240x240 oled screen = working.

Now I just need to figure out a way to get an image file from my computer/phone/somewhere to the actual flash chip. No idea where to start with that.
I also have a spare 64kb ram chip that might work. I'm contemplating looking it some sort of scripting engine for the arduino so that a watch face can be separate from the program code, so wouldn't need to be recompiled to change.

But in theory at least, this is the hardware for a working smartwatch.



-=-=-
Check out my excellent homepage!
Thu, 25 Feb 2021, 04:25
Jayenkai
You should definitely make the strap like that!!
Thu, 25 Feb 2021, 04:42
TKS
Cool! I played around with an Arduino and a little monochrome display like this a few months ago. Originally built with an Uno and then transferred it over to a Nano. Ended up with this:

https://youtu.be/t76jvdmtVXI
Thu, 25 Feb 2021, 05:13
Jayenkai
Epic!!!!!
Thu, 25 Feb 2021, 16:48
rockford
I doff my hat to both of you fine gents and your electronic tinkering
Fri, 26 Feb 2021, 02:42
spinal
OK, here is my design idea, not 100% sure if it will work, I've asked someone on the arduboy website (who knows a lot about this sort of thing) if my charging idea is safe. Basically I want to charge and program through the same USB connection without having to power it off at any time.



Other than the charging, it looks like it might work.

Next step, figure out why I can save SOME data to the flash and not OTHER data.... Then somehow make an android app to keep it updated.

-=-=-
Check out my excellent homepage!
Fri, 26 Feb 2021, 02:53
Jayenkai
Looks complicated!
Good luck!!
Fri, 26 Feb 2021, 03:06
spinal
The flash usage is going to get troublesome I think. To write anything, you need to 'clear' the space first, which can only be done in specific size chunks. Going to take some more research 🤔

-=-=-
Check out my excellent homepage!
Tue, 02 Mar 2021, 04:42
spinal
Works + Spanner = argh!

Downloaded Android studio, download example project to link to ble chip from phone.... It's terribly outdated, doesn't compile, has a million errors and java is a complete nightmare to even google what the problems are. Why the hell do people like this language? the editor is confusing, the errors are confusing and there are a million files here to do the simplest of things... argh!

-=-=-
Check out my excellent homepage!
Page : 1 2 Next 3 4 5 6 7 8 9 10
Prev