-
Actually all 11 of them would be for the university, since this got approval they'll reimburse me for all, not just for 10. Also, all can be shipped in one package to same address.
I'd use my personal credit card to pledge for all 11, thus I guess no need for two accounts. I just need to know what amount to change the existing pledge to. -
-
-
@Gordon, my university where I'm teaching might want to purchase a workshop package of 10 pcs. If we do it through Kickstarter, will it be possible to get an "official" invoice of that, either from you or Kickstarter? In the invoice we'd probably also like to include the 1 pc I've pledged with my personal credit card.
Also, I understood that VAT is included for shipping to EU, I hope this is similarly as when ordering from any web-shop outside the EU? Meaning that (if I've understood it correctly) the VAT part is deductable.
-
-
Well, I'd also prefer it to be on the Espruino website, I don't have any specific needs to have it on my own website. Do note that I'll also cover the Edge Impulse part in the tutorial, so it will not only be about Bangle.
Seems like your website is pretty much done with Github. I seem to have a Github account from before, so I'll setup a private project and try to create the tutorial there instead. Then I guess I can some way or another share or send the content to you? Don't know yet though how the image embedding/linking works, I'll need images mainly for the Edge Impulse part, so in the end perhaps not too many.
-
@Gordon, I have now started with the tutorial, I hope it's ok that I use my own website for it? This way I also learn how to add posts there using Wordpress.
-
Ok, to split files with Python, this can be used
import re PATENTS = 'C:\\temp\left.txt' def split_file(filename): # Open file to read with open(filename, "r") as r: # Counter n=0 # Start reading file line by line for i, line in enumerate(r): # If line match with teplate -- <?xml --increase counter n if re.match(r'timestamp, x, y, z', line): n+=1 # This "if" can be deleted, without it will start naming from 1 # or you can keep it. It depends where is "re" will find at # first time the template. In my case it was first line if i == 0: n = 0 # Write lines to file with open("{}-{}.csv".format(PATENTS, n), "a") as f: f.write(line) split_file(PATENTS)
Found it at Stackoverflow.
Need to modify the JS-code slightly to create just one file per event type, but that's not a biggie. After that I might have most other things in place for a write-up. -
Sure, I'll write down the steps, take screenshots and provide them one way or another to you.
After some struggles, I'm new to JavaScript, I've since an hour ago finally been able to collect gesture data, train it in Edge Impulse and upload the model to Bangle. Now it works fine, and I have e.g. been able to control a PowerPoint presentation just by twitching my hand. That comes in handy as I'm a teacher :-)
When using CSV-files with Edge Impulse, the reguirement is one sample per file, format is like this:
timestamp, x, y, z 0, 7, -5, -65 3, 7, -13, -61 6, 5, -1, -48 9, 4, 41, -24 ...
With Bangle JS I've so far created one file per sample, but it gets quickly tedious when I need to download a lot of CSV-files from Bangle to my computer. Instead I'd like to create one big file per event (e.g. one file for samples of left twitches, one for right, one for up ...). But how to split these files into separate CSV-files on my computer? I'll later search for some Python-code or similar, but if anyone has something ready made I'm grateful.
-
-
-
@NebbishHacker & @Gordon
Thx a lot both of you!With your guidance I've now been able to try out my very simple model and it works technically, albeit it almost always shows "right" even if it should have been "left". This might very well be because I only had 10 samples of each which probably is far too small dataset, I'll look into this.
I had actually tried the Google Colab workshop but the quantized exporting always fails with "ValueError: the operator SPACE_TO_BATCH_ND is not supported by TFLite Micro", and as I for now prefer Edge Impulse for its simplicity, I did not dig deep into possible causes of the error message.
@Gordon
Yes, a tutorial would be nice! When I myself understand the process and get it streamlined I'll write the steps down as I'll anyhow need them later in my research. I'll provide them to you in case you might benefit from them. -
-
Thx @Robin!
I had indeed before searched the Espruino forum and internet, but for some reason I did not find the post you are linking to.
In this forum and on the net I've found different bits and pieces, but not the whole picture, or at least I cannot understand it.What I'm not understanding is how to use the tf-lite model files, can/should I save them to Bangle first and invoke them? How?
Perhaps @Gordon can provide me some pointers -
Am trying to wrap my head around TensorFlow Lite on Bangle. Have successfully managed to collect gesture data (twitch hand left and right) from the watch and also trained a neural network in Edge Impulse.
From Edge Impulse I can then download float32 and int8 quantized files as well as the full SavedModel files (see their forum: https://forum.edgeimpulse.com/t/using-edge-impulse-with-other-boards/88/9).
I'm attaching the int8 and the SavedModel files for reference.My question is how I can deploy these files to Bangle and use them there?
Have backed Bangle v2 and am hoping I could include it in my master thesis research. The thesis project is to conduct a AI-course at university level (during spring 2022), and as main platform I'm planning to use Edge Impulse, am now "hoarding" different edge devices like Bangle, OpenMV Cam, HiMax etc. to use for collecting different type of data. Bangle v2 seems like an optimal fit for accelerometer type of data as it can be transferred wirelessly. If I first get something working on Bangle v1 and later on v2, I'll see if my university would be willing to buy 10 to 20 watches to use by the students.
-
-
-
@Robin thx for responding!
I actually was able to connect once again, and removed one app (Simple Heart Rate widget) that caused the heart rate to be measured as soon as the screen was on. After this I'm able to connect, also after restarting the watch.
I'm not sure if/how that app could cause Bluetooth interference or issues, but I don't want to add it again in trying to replicate if it was causing issues or not.Yes, I've tried to manually sound the piezo, no sound at all, and yes, I'm keeping it close to my ear. Also others have reported that the piezo is not working or even missing in some case/cases.
-
Well, 1.5 times I was able to connect through https://banglejs.com/apps/, using Chrome on a Win10 machine.
Once everything worked amazingly fine and I was able to upload apps to the watch.
The 0.5 means it started to download the app list but got disconnected.
I've tried probably over 100 times and sometimes I'm able to pair the watch in the window that pops up when clicking , after that the status bar Getting app list is shown but not proceeding.
Same problem on another Win10 computer.Also, no beeps are heard, the one time when I was able to connect, I uploaded Manic Monday Tone, when starting that I get a message on the watch but nothing happens when pressing it, and no sound whatsoever. Same goes with the morse app I was able to upload.
Debug info is set to Hide.
Edit: The few times when I'm able to pair, I get this message after a couple of seconds: 'Device connection failed, undefined'
-
-
-
-
-
Thx @Gordon, finally I was able to communicate through Win10 (32-bit) with the command-line app! I'll try the Zadig option later to check the Web IDE.
Yeah, I also have a few Pucks that unfortunately have not been used that much. As you also write, I like to have something boxed, while a PCB at it best can be seen as some type of art, it's better and safer to have some enclosure.
Now, just waiting for @Gordon to say how much I should pledge for 11 watches including EU shipping.