-
I have received my fitness band today. Surprisingly it is exactly same as in FCC.IO
Highlight
- Open with 4 screws on back, so no need to cut open. Supper!!
- nRF51822 QFACA1 (256 KB ROM, 32 KB flash). Very Cool!!
- SCLK and SWD are clear visible and can be solder easy.
Nest step to get the original firmware out from the watch and flash eprrunio likely.
Here are the tear down images:
https://drive.google.com/drive/folders/1yusvIWzOt6pknkncByfNGnd0HALn4JGg?usp=sharing
- Open with 4 screws on back, so no need to cut open. Supper!!
-
This topic is moved from here
I am inspired by one of the topic but very very old (4 years) to flash espruino on cheap fitness tracker.
Goals are:
1 - Hack something.
3 - Get know how about nrf software, SDK, softdevice, application etc.
2 - To learn the flashing process using DFU and SWD programmer (ST-Link v2, J-link ) or OpenOCD with raspberry pi.
3 - To have some funSince I already have a microbit so I think that fitness tracker is sharing the same SOC as the mBit.
I found one ebay listing for such fitness tracker using nRF51822 32 KB ram 256 KB flash. Ordered and yet to arrive.
I googled for more information available in the advertisement and found that I may be a clone on V07 SPORT BP Heart Rate Tracker. Searching on the same on FCCID found this.
So assuming this is the same as in the image, I can open the tracker with just 4 screws, so no cut & open.
I can see 5 pads in a line, center of the PBC. Last 2 are SCLK and SWD. So this would be the SWD pads where my programmer will connect.
I am still not clear about the display type and controller.. Serial (SPI/I2C/) or Parallel (8 or may be 16??)
I will post more updates soon.
Abhinav
-
-
@AkosLukacs, sorry about your watch and lcd. But thanks for information.
I am pretty much new to the business so I will take my chance in coming time.
However I just ordered a nRF 51 based (at least seller claims) fitness tracker as a starting point and let’s see how it goes.
32/256 ram/rom.Hear is the eBay listing
https://rover.ebay.com/rover/0/0/0?mpre=https%3A%2F%2Fwww.ebay.co.uk%2Fulk%2Fitm%2F164001458274
I hope that the DFU via nRF connect will not work straightaway and I will brick my device in first attempt. :)
Then I will try to cut open the tracker and use my rpi zero w to flash Espruino.
-
@AkosLukacs thanks for suggestions. Just wondering if you have any plans to flash your DT28 in coming days?
-
-
@fanoush, excellent explanation!!
Looking various device options suggested in that post, I am really impressed with DT28 watch with its round display and also the nRF chipset used.
So I really want to try flash espruino on Dt28 (via SWD as it is only option).
So what do I need to compile espruino for DT28? a new board.py file? What about the GPIO pin out for board file? Is is same as F18?Thanks
-
Excellent work @JumJum. I really enjoyed a lot you work. Chart looks amazing :)
-
I don't know if you like this. but have a look and enjoy:
https://www.espruino.com/ide/emulator.html?gist=c63a9d49a09847144666ea8b0a6a2fd5&upload
@MaBe - add this feature in his list Enhancement for Graphics #1702
-
Is it possible to have an ability to draw or fill an arc for espruino devices with display (BangleJS/PixelJs).
A native method with parameters : Start Angle, Sweep Angle, X, Y coordinate and radius.
Espruino already have native functions for circle and ellipse that can be use to draw an arc. Just a thought!!
-
Thanks @Gordon!!
Yes possibilities are endless, however
rotating by 90 degrees each time, I guess there's even the possibility of having a small radial slice and rotating by 30 degrees each time
I struggled to render the image with rotation if rotation angle is less. It does not render and sometimes result is a distorted image. See attachment.
I added some code last week which should allow one single big image to be written to flash and rendered from there
This is great!! Where I can find this in source code?
Another thing that I really like to have fake storage in emulator. so that read and write can be done via chrome storage that emulate the device storage. Is it possible??
-
Thanks @Robin, I am still learning the BangleJs ecosystem. :)
-
16 images are just a max slices required for an asymmetric watch face, but the actual numbers of images can be reduces by re-using the same image on different screen position.
Like corner images are same but just filliped and rotated. So one saved image can be used to get 4 different ways.
It will save some space still having 16 segments of display..
-
Honestly, I had this idea before to use a full image as clock face. Since lack of actual Bangle device and a quick learning about low RAM took me down to drop the idea.
After some time this idea again activated in my mind with a bit difference. So this time I split the 240x240 image into 16 slices with dimensions of 60x60 each and converted image to binary using image converter tool.
Now the idea is to save each binary image file to storage, and draw all image once when face is initialized. 16 images will help to identify the segment of display to be updated on each minute and update only those image which is effected by the clock hands to be re-print.
-
-
-
Thanks @Jean-Philippe_Rey for quick tip on shorter angle!!
Thanks @allObjects for suggestion. I made some changes now!!
I hope I will be able to PR when I will get my BangleJS in Mar!!
I also would like to see running this code on beta bangleJS device!!
-
There is no issues with system time. The Hand() function for rendering hours is not provided the correct angle.
hand(360*minuteDate.getHours()/12, -10, 50);
As Is - > 360*minuteDate.getHours()/12
Should Be - >minuteDate.getHours() % 12 * 30 + minuteDate.getMinutes() / 2 | 0I got the new values from Mixed Clock example! and it is working as expected with new values
-
Thanks @Gordon. This is exactly what I was looking for.
Pacman looks great. I will now work on rest of the piece.
You are awesome!!!
-
Hi All,
I am trying to design a pac-man styled watch face with some animation.
I am not very good in graphics related mathematics and need community help to achieve
1- Arc/Pi drawing : As there is no function to draw (only drawCircle and drawEllipse is available)
2 - image rotationHere is the work in progress link:
https://www.espruino.com/ide/emulator.html?codeurl=https://github.com/abhigkar/banglejs-pacman-clock/blob/master/pacman.js&uploadWhat I want to do is to
- draw the pac-man
- move pac-man in the outermost circle so that pac-pam can eat the white dots.
- animate pac-man for open-close his mouth
I trying to create pac-man using image but it is not efficient when rotating it on to the path.
Any suggestion or heads-up is appreciated.
Many thanks!!
- draw the pac-man
@fanoush
I have got further information about my fitness band posted above.
I have a raspberry pi zero w in hand so planning to use openocd for flashing.
H band is the application that is used for as mobile app for this band.
NrfConnext says this device does not support Nordic dfu mode.
Please suggest what else I have to know before start custom flashing?
And from where I should start? Like use an old version (number) of Espruino or build my own with modified board.py file?
Frankly speaking, I have no idea where to start...
Just to inform that the device is exactly same as (http://www.wo-smart.com/p-56.html) discussed in gitter lobby
https://gitter.im/nRF51822-Arduino-Mbed-smart-watch/Lobby?at=5ce354b883ae782aeea29be5