open sourced STM32 smartwatch / smartclock / IOT / blurbs about STM32

ag123
Sun Jul 24, 2016 12:20 pm
yes *very possible* :D
https://www.youtube.com/watch?v=M0tox7ly-64

http://makezine.com/projects/make-43/op … martwatch/

http://www.stm32duino.com/viewtopic.php?t=591

a newbie to mcu world, ‘tweeting’ some of my discoveries googling & learning about mcus, stm32, arduino
just an exuberance of discovery & thoughts :lol:


ag123
Sun Jul 24, 2016 12:20 pm
it won’t be too far away when someone hack the washing machine & IOT it :lol:
http://www.stm32j.com/portfolio-item/de … chine-hmi/

http://www.st.com/resource/en/brochure/brstm32mc.pdf

http://www.st.com/resource/en/applicati … 003975.pdf


zmemw16
Sun Jul 24, 2016 12:54 pm
i was thinking of using a ssr to control the tumble dryer with a dht22 in the outlet duct.
the manual timer aspect does however present a problem.

the sensor does give a series of roughly ‘sawtooth’ measurements, temperature at the end of cycle’ in the tumble dryer increased, the humidity is quite similar, but inverted(istr ???) with a falling peak.

stephen


ag123
Sun Jul 24, 2016 2:20 pm
pebble sesame
https://www.youtube.com/watch?v=uxB4fb8dUpM

ag123
Sun Jul 24, 2016 2:30 pm
highly integrated MCU’s such STM32 as is ‘going places’ these days, fast closing in to that of present day smart phones
and it adds dsp, mixed signal (dac, adc), lots of gpios, all on a single SOI or very few discrete chips

Raisonance Open4 / ST primer / evo-primer
http://www.st.com/content/st_com/en/pro … rimer.html
http://www.raisonance.com/open4.html
https://www.youtube.com/watch?v=TJWeVvicvZk

http://www.stm32circle.com/
http://www.stm32circle.com/hom/index.php



ag123
Sun Jul 24, 2016 5:41 pm
you can already have your very own open sourced open hardware ‘fitbit’

right from st microelectronics
http://www.st.com/content/st_com/en/pro … wesu1.html


RogerClark
Sun Jul 24, 2016 9:40 pm
@ag123

I think the problem with the WESU1 from ST is that it does not have a display.

So as well as writing the firmware for the WESU1 you must also write your own phone app


ag123
Mon Jul 25, 2016 1:19 am
@roger

fully agreed, but i just chanced upon it hence linked it here :)


RogerClark
Mon Jul 25, 2016 1:46 am
@ag123

I went to Bay Area Maker Faire this year (in May) and hoped ST would be demonstrating the WESU1 but they only had a broken one :-(

I think they are missing a trick by not producing a version with a display, but they don’t seem that good at marketing


ag123
Tue Jul 26, 2016 8:29 am
actually the bleeding edge in open hardware smartwatch / smartclock / IOT is right in here:

http://www.stm32duino.com/viewtopic.php?t=591

not sure if it might just become a commercial product / reality sooner than later
the idea of an open hardware smartwatch is attractive, bored with the current watch face? develop a new watchface (i.e. app) say using an IDE say arduino IDE / eclipse, connect the USB cable, install that in flash via DFU update & reboot, viola a new watch literally

i’d think ‘modular extensions’ just like arduino shields is also possible, add a gps? plug that module in connect the usb cable install a new firmware using DFU update flash & reboot ! this i’d guess would be similar to the modular smartphone concept

http://leaf-labs.squarespace.com/project-ara/
https://atap.google.com/ara/
:lol:


RogerClark
Tue Jul 26, 2016 9:26 am
@ag123

I don’t think @FurkanCetin finished it. The last posting was some time last year


madias
Tue Jul 26, 2016 12:30 pm
I dont wanna be the fun killer here, but there are (totally cheap) special chips who can handle things like smartclocks even better than a STM32Fxxx can ever be:
Example: Mediatek: MTK6260, MTK6261
So it would be a better aproach to get into the SDK of these. (and/or buy a smartwatch like the Aplus GV18 (I own one for less than 20 Euros)) and do some reverse engineering, because the firmware is bad as hell.) Starting point would be this: http://codeasm.com/U8/ but I assume there is no real english documentation out.

strawberrymaker
Tue Jul 26, 2016 11:53 pm
No datasheets? no thanks.
If i remember correctly pebble still uses STM32F processors, while having a much smoother experience AND interfaces than the cheapo china smartwatches IMO.

~Straw

EDIT: There it is, Step 9. And it still has a longer battery life than other smartwatches. (with a color display)

~Straw


ag123
Wed Jul 27, 2016 6:13 am
just got my stm32 evo primer (open4) ordered from element14, it is literally ‘flying off the shelves’ (i tried to find a link to it and discovered that it is ‘missing’ probably sold out

my impression with the device is wow !

below is a link to a youtube video found about it, not from me:
https://www.youtube.com/watch?v=ZB7g21grsP4
[youtube]https://youtu.be/Eq9p5guqQ-g?list=PLYPR … UjMpnmo2DA[/youtube]

the home site:
http://www.st.com/content/st_com/en/pro … rimer.html
http://www.raisonance.com/open4.html


zoomx
Wed Jul 27, 2016 6:19 am
Pebble uses ST Micro STM32F439ZG 180 MHz ARM Cortex-M4-based MCU, as written in the teardown.

ag123
Wed Jul 27, 2016 6:25 am
‘discovered’ how much i’ve been missing in this brave new stm32 world :lol:

space invaders on stm32 ‘kit board’
https://youtu.be/Eq9p5guqQ-g?list=PLYPR … UjMpnmo2DA
[youtube]https://youtu.be/Eq9p5guqQ-g?list=PLYPR … UjMpnmo2DA[/youtube]

home site:
http://www.artekit.eu/space-invaders-for-stm32/


ag123
Wed Jul 27, 2016 6:33 am
quicktime movie on stm32 F4 discovery

https://www.youtube.com/watch?v=mI7VTju … DA&index=9
[youtube]https://youtu.be/mI7VTjuPx_s?list=PLYPR … UjMpnmo2DA[/youtube]

more videos found here:
https://www.youtube.com/playlist?list=P … UjMpnmo2DA


ag123
Wed Jul 27, 2016 7:01 am
doom on stm32f429 discovery

https://www.youtube.com/watch?v=bRNcfsDIc2A
[youtube]https://youtu.be/bRNcfsDIc2A[/youtube]


ag123
Wed Jul 27, 2016 7:21 am
gui on stm32f7 by st itself, but of course f7 is pretty high end and fetch a premium (i.e. somewhat costly) & brings it to a level competing with the ghz superscalar arms & intel :lol:

https://www.youtube.com/watch?v=a1U5W8K … 1q0G_4VdDc

more videos found here
https://www.youtube.com/playlist?list=P … 1q0G_4VdDc


madias
Wed Jul 27, 2016 8:16 am
Ok, the STM32F7xx is the most interesting MCU at the moment – can’t wait for the sub 10$ dev boards on ali.
Back to the smartwatch: I personally have problems with the sense/operation of ALL smartwatches (SW) they are currently out ,most of them are software related:

  • Even the first wristwatch (Abraham Louis Breguet, 1810) had a decisive advantage as opposed to all modern SW: You can read the time WITHOUT pressing any button or getting the right angle for the gyro. So we need a SW where the display is ever ON (OLED or e-paper like the pebble is a big step forward)
  • Bluetooth: If you use the SW as bluetooth device the range is really bad: You cannot even go to the toilet without loosing the connection (even on the expensive ones). So the big question is about getting a strong (and stable) connection without consuming too much power. (again the pebble with BT4.0 but you have to own a super new smartphone)
  • Touchscreen: A really pain on small screens. Most GUI’s on SW are nearly impossible to use, even the fingers of my 4-year old daughter are too big.
  • Bluetooth mode: phone with the SW (loudspeaker – microphone) is lousy (if you do not just want to call a black Trans Am) . When connected to BT there is no possibility to use an additional BT-headset

madias
Wed Jul 27, 2016 8:36 am
ADD: The first pebbles used not an e-paper, but a sharp LCD display. I bought 2 of them a while time ago (for my TI Tiva TM4C123G LaunchPad) at a discount price. Sadly the shipping costs for the launchpads and boosterpacks are incrediable high (to Austria, before it was free shipping) so I stopped using all TI products.
But the display is VERY nice, outstanding reading angle and nearly no power consumption. So if you can get one cheap, just take it:
http://www.ti.com/tool/430boost-sharp96
There is somewhere a (basic) library written for Energia, so it’s no real effort to adapt it. (apart from the capacitive touch sliders, you need a MCU with hardware support for it (MSP430)

ag123
Wed Jul 27, 2016 9:23 am
i’d guess f7 would be more suitable for the ‘high end’ type of dev, it’d feel a somewhat expensive to start with an F7 blinking leds for ‘hello world” :lol:
but i’d think f7 would be better to run with external sdram say 512k or even 1gb at least and large amount of flash say > 1gb, that would allow full fledged OS such as linux and even android to run and it is no less an mcu i.e. with all that gpios, adc/dacs, spi, i2c, etc

another thing is there is something i like about the ‘evo (open4) primer’ concept is that ‘extension board’ concept

http://www.stm32circle.com/resources/do … anical.PDF
http://www.stm32circle.com/resources/stm3242Iprimer.php
http://www.raisonance.com/open4.html

this is something i’ve been thinking about and made a reality by Raisonance and ST. that is pretty much the attractive point about the ‘arduino shields’ concept and i’d think fill an important niche. the primer takes it beyond ‘development boards’ it is pretty much a complete appliance (almost a multi-purpose ‘game console’) and u’d be able to ‘plug and play’ ‘extensions’ such as gps, radios (e.g. wifi / bluetooth, gsm/lte (makes it a phone) etc), and perhaps many more possibilities

many higher speed arm ‘development boards’ failed to fill this particular aspect/niche of ‘plug and play extensions’ and it keeps arduino (even those ‘low speed’ unos) in a niche of its own.


strawberrymaker
Wed Jul 27, 2016 9:54 am
@ag123 yeah, pretty amazing what people have done with the fancy stm32 chips :D
Yeah, the eval and discovery boards are a bit costy for the f7, but still, the f7 PLUS a ‘big’ screen (4.3inch 480×272) PLUS Audio PLUS Ethernet still seems like a good deal IMO.
But the chip itself isnt that expensive compared to what it can do. You can get it for like ~10$ at digikey.

EDIT: I dont think you need linux on your wrist, let alone a full android version. I would LOOVE to use the android wear os in a stripped down version, but well, couldnt find the sourcecode. and seems like its qualcomm only again. else the chinese would already have 100 SW with it running for 20€ xD

@madias have to agree with you on the first and third point. always on is a must. I wanted to work with this full color oled for a moment, but i ordered just the screen to embed it directly into a project and it didnt turned out working on my side of things. maybe some day. Here is also a seller with really neat epaper screens, but still missing color. dont know if there is any manufacturer who got behind how they are doing 63 colors, but the maximum i could find was 3.
Touchscreens are just a nogo, only useful way is to have one or two buttons, but that will also limit the way you can interact with it really. Or something like the approach of the new samsung gear, where the outer ring acts like a small touch slider, with which you can navigate through the menues.
The Bluetooth range really seems to be a problem generally with bluetooth devices. also things like my bluetooth speaker wont handle more than 20 meters on the beach without starting to lagg around.
About the mode: Im pretty sure that, atleast in android marshmallow, you can select which functions you want to use from a bluetooth device. F.ex. you can deselect that the smartwatch also acts like a microphone and enable that function in your headset.

~Straw


ag123
Wed Jul 27, 2016 10:26 am
@strawberrymaker

as to android or android like os running on smart watches, i’ve come across this ‘bleeding edge’ attempt :lol:
https://www.youtube.com/watch?v=IKFSYqBCqk4
https://www.youtube.com/watch?v=zZ4oqciE7ZA

actually my (accidental) foray into stm32 is basically to ‘patch some sensors’ to a device, smartphones these days are pretty much ‘non-extensible’, hence ‘arduino’ and this stm32 boards i come across seemed like a nice fit to that ‘extension’ concept.


madias
Wed Jul 27, 2016 11:37 am
…Another MCU Candidate for smartwatches would/could be the ESP32, with this chip you have nearly everything “onboard”: WIFI(802.11n), BT (4.2), ADC, DAC, temperature sensor, hall sensor. Even I2S, so you can build a really “high-end” audio device with it. OP is freeRTOS. Here is the manual of the ESP-WROOM-03 dev board: https://github.com/CHERTS/esp32-devkit/ … _EN_v1.pdf

ag123
Thu Jul 28, 2016 7:41 am
actually this is already a reality, u’d only need to google for it, but of course it is tad big to be a watch :lol:

http://makezine.com/projects/s-m-a-r-t-alarm-clock/


RogerClark
Thu Jul 28, 2016 7:46 am
The ESP8266 isnt a very good candidate as it takes loads of power.

I know it has sleep modes, but AFIK they are not that easy to use.


ag123
Thu Jul 28, 2016 7:55 am
the challenge about making smart watches i’d think actually is *miniaturization*, it is relatively easy in a manufacturing context to make very compact devices in large volume, however, for a ‘hobbyist’ this is pretty much difficult unless one really go the distance to shrink the components. if one succeed it would amount to making ‘arduino swiss watches’ i.e. complicated custom hand made watches of the IOT age & if u run android in it with 4gb flash & 1gb ram it is a grand complication :lol:

zoomx
Thu Jul 28, 2016 1:31 pm
RogerClark wrote:
I know it has sleep modes, but AFIK they are not that easy to use.

ag123
Tue Aug 02, 2016 3:53 pm
actually, u don’t really need to wait, it is already a reality – here comes pebble’s competitor and it is done in the name of ‘development kits’ ! :lol:

Hexiwear Wearable Dev Kit BLE for IoT – from MikroElektronika and NXP semiconductors

http://www.hexiwear.com/
http://www.nxp.com/products/software-an … n:HEXIWEAR
http://www.hexiwear.com/hardware/

and here is a teardown and review
https://mcuoneclipse.com/2016/07/12/hex … ng-device/
the catch: bluetooth stack on device is not open sourced


RogerClark
Fri Sep 02, 2016 9:41 pm
There are now even cheaper hackable smartwatches

See http://forum.espruino.com/conversations/280747/

I have ordered 2 similar watches from eBay for $8 each from eBay, but they wont be here for several weeks

Goran Mahovlic is currently working to get it to work with my Arduino core for nRF51822

https://gitter.im/nRF51822-Arduino-Mbed … atch/Lobby

Display is almost working. Accelerometer is working. Vibration is working. Bluetooth is working. Serial is working.


zoomx
Sat Sep 03, 2016 8:35 am
I din’t find any IDO 003 smartwatch on ebay (maybe they dont’ ship to Italy) but I find a TW64 smartwatch that seems a clone.

But in the comments there is someone that say that there is a model with different hardware and a LCD instead of a OLED screen!
For TW64 in the description they say that the screen is an OLED…


RogerClark
Sat Sep 03, 2016 9:07 am
I ordered a TW64 and in the picture it looks like a OLED, but I don’t know what I will receive.

Image


zoomx
Sat Sep 03, 2016 4:03 pm
In the ebay link you posted in the other thread I read this
Model: TW64
Appearance material: Aluminum alloy shell, soft rubber strap
Bluetooth version: 4.0BLE (low power consumption)
Screen: OLED 64*32
Memory: 64KB RAM + 64KB ROM
Sensor: G sensor
The main chip: Quintic QN9021
Bluetooth chip: Quintic QN9021
Battery type: 301425
PCB size: 34.6*14.5*0.8
Display: OLED64*32
Compatable with: Android 4.3 or above, Ios 6.1 or above (such as iPhone 4S, iPhone 5, 5C, 5S),
Standby time: Normally use for 2-3 days, standby for one week.

So it should have an OLED screen


RogerClark
Sat Sep 03, 2016 8:24 pm
Yikes

Perhaps it doesnt use the nRF51822 after all.

That would be a problem.

I will double check


RogerClark
Sat Sep 03, 2016 8:35 pm
I checked the item I have bought and this is the description


General
Brand: Makibes
Model: ID107
Bluetooth version: V4.0 BLE
Waterproof rating: Life-level waterproof
Main chip: Nordic nRF51822
Pulse sensor: Silicon labs Si1142
G-sensor: kx022-1020

Special Features
Bluetooth calling: Phone call reminder
Health Tracker: Heart Rate Monitor, Pedometer, Calories Counter, Distance, Sleep Monitor
Remote Control: Camera remote
Other Functions: Alarm Alert, Time Clock, Anti-Lost, Phone Finder (Alerts reminder for whatsapp , facebook, twitter, line, wechat message for Andriod cellphone ,IOS cannot support )
Alert type: Vibration
Available colors: Black, Blue, Orange, Purple
Single Key: Short Click and Long Press Control
Special Feature: Light on Wrist Up
Data Storage: Latest 7 Days
Compatible OS Android 4.4 / iOS 7.1 and above system

Screen
Display Size: 0.49 inch
Display Type: OLED

Battery
Battery Capacity: 60mAh Li-Poly battery
Working Time: Over 7 days
Charging Type: 3 Pins Clip Charger
Charging Time: 1~1.5 hours

Dial and Band
Dial shape: Rectangular
Case material: Plastic
Band material: Silicone

Weight , Size and Color
Dial size: 41.6 x 20 x 12.8 mm
Product weight: 25 g
Color: Black,Orange,Green,Dark Blue,Purple

Package Included :
1 x ID107 Bluetooth 4.0 Smart Bracelet smart band
1 x Charging Cable
1 x User Manual

So it seems I have ordered an ID107

I don’t know why the listing contains the “TW64”, it could be because the listing was for multiple products and you have to pick which one you want from the dropdown menu

I hope it is the ID107 e.g like this one

http://thetechhacker.com/2016/04/26/id1 … nd-review/

Anyway, I only paid $8 USD and if it is not the item in the listing with nRF51822 I will ask for a refund


RogerClark
Sat Sep 03, 2016 9:27 pm
Very confusing. I’m now not at all sure about what I bought. Description is missleading.

I will wait and see what I receive


ag123
Wed Oct 19, 2016 8:27 am
ok let all that detective work start again :lol:

$8 on amazon !
https://www.amazon.com/TW64-Bluetooth-S … B00T5UWF9A

http://webcache.googleusercontent.com/s … clnk&gl=sg
TW64 Pro JW86 Heart Rate Smart Bluetooth 4.0 Wristband Watch Black
Wristband Material Medical Soft Rubber
Color Black
Usaging Temperature Range -20℃~45℃
Language English
Duration Time 5days(MAX)
Sensor ARM Cortex M4
Battery Li-ion
PowerSource Voltage: 5V, Current: 500-1000MA
Charging Time 1-2h
Material PC
Bluetooth Version V4.0
Memory 4M
Compatible with Above ISO7.0/Android 4.3
System WristbandLength 10.82″ / 27.5cm
Dimensions (10.82 x 9.06 x0.51)” / (27.5 x 23 x 1.3)cm (L x W x H)
Weight 1.13oz /32g
$21.00 [/quote] oh but that’s ‘pro’ version, not sure if it’s the same. but ‘ARM Cortex M4’

this enterprising person has got the *teardown*
http://forum.xda-developers.com/general … r-t3393740
http://imgur.com/a/vSnt6

Image
Q 9021 415P1
16 mhz crystal
and that 8×4 32 LQFP pins seemed to be some STM32 ‘clone’ & it looked too much like 1 of those STM32F103x 32 pin series :P :lol:

strangely can’t find LQFP 32 pins packages for STM32 F1, F4 series, but found one of LQFP32 for F0 (Cortex M0) series
http://www.st.com/content/st_com/en/pro … 031k4.html

vcc on pin 9, rx on pin 10 – doesn’t seem to match F0 or L0 K LQFP 32 package as well

it would seemed instead NXP QN902x is a better match
http://www.nxp.com/documents/data_sheet/QN902X.pdf
http://www.nxp.com/products/microcontro … ion:QN9021

yup NXP QN902x Ultra low power Bluetooth LE system-on-chip solution
32-bit ARM Cortex-M0
64k on-chip memory (possibly just ‘flash’? not sure where is the ram )
VDD on pin 9, RSTN on pin 19, pin 10 P1_7 RXD0 UART0 RX data input – matches,
has SWDIO pins, ok ‘sufficiently’ hackable :lol:
oops, but the RF h/w is only briefly stated in the docs, not sure if detailed specs to access the RF h/w is available.
even then to develop a bluetooth stack talking direct to h/w could be a staggering challenge, & that’s not all, the initialization & ‘driver stack’ (e.g. libmaple style) codes doesn’t seem easily available
apparently development probably means using nxp’s SDK which i’ve not yet explored if the s/w & tools downloads provided on nxp web is all it takes or that something else is needed


Leave a Reply

Your email address will not be published. Required fields are marked *