Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - jpencausse

Pages: 1
TinyDuino Processors & TinyShields / Re: Tinyduino motion logger
« on: June 19, 2015, 10:11:35 AM »
Thanks Ben Rose,

Well, I only need to write :

Let's say a motion is an acceleration with an amount greater than a given threashold. I could look at x,y,z every 200ms.

Many Fitness tracker works for +6 month but I know design of Arduino (and now Tinyduino) are not well suits for long battery.

TinyDuino Processors & TinyShields / Re: Tinyduino motion logger
« on: June 12, 2015, 04:32:20 PM »
Thanks Grimstone,

Logging seems to be easy, I already did some test flashing the tinyscreen to red, etc ...

But I'm very afraid with battery that might not last so long. And I don't know how to set sleep mode (While sleeping it do not take an accelerometer value)

And the size, cookies are small ! Even if it is DIY adding shields will enlarge the object

TinyDuino Processors & TinyShields / Tinyduino motion logger
« on: June 11, 2015, 03:50:59 AM »

Following this question:

I would like to create a little device that log accelerometer motions for 2 weeks on battery. So
- Tiny Accelerometer
- Tiny Duino
- Tiny Battery
- Tiny SDCard ?

The idea is to do something like motion cookies from  (

But I don't know
- if it is possible and how to handle the battery ?
- if i have to add something to keep track of the timestamp (because 3 shield is already big object)

Did someone already do that ?

TinyDuino Processors & TinyShields / Re: TinyScreen Glasses
« on: March 29, 2015, 11:21:02 AM »
Thanks I asked them,

It seems it would require a very specific prism display 50% of the image to see throught

But in fact it's not possible with TinyScreen because the eye can't focus. If you try to do something like the kickstarter photo you'll see the screen is too close. So the prism should to some zoom out, well it's too complicated ...

TinyDuino Processors & TinyShields / Re: TinyScreen Smartwatch
« on: March 19, 2015, 11:16:19 AM »
I install the app from codebench

And use the copiled APK on a Nexus 5 too. The app do not see the URT advertiser and crash when clicking on an other (Shine, StickNFind, ...).

Ok thanks

For the SD Card I use the tutorial in SDCard page:

For the Accelerometer I use the tutorial in page:

For the TinyScreen I follow projects here:

EDIT: Try with latest version but SD card still not writing

Thanks, Yes here is the PastBin:

I "only" merge TinyScreen Sample with Accelerometer sample and SDCard sample

TinyDuino Processors & TinyShields / Re: TinyScreen Smartwatch
« on: March 16, 2015, 08:08:55 PM »
Ok thanks understand

I didn't see URT in the scan I'll dig (other BLE device crash the app)

Whats shoud I do to make it work in Arduino IDE ? (It look for TinyScreen.h and Time.h may be I missed something)

TinyDuino Processors & TinyShields / TinyDuino BLE iBeacon
« on: March 16, 2015, 11:54:37 AM »

Does anybody have a sample code to do iBeacon brodcast with BLE shield ?

Thanks !

TinyDuino Processors & TinyShields / Re: TinyScreen Smartwatch
« on: March 16, 2015, 11:53:21 AM »
@Ben can you provides a little bit more explanation ? (sorry i'm n00b)


I got the Android app running on Android Studio in Debug mode on my Nexus 5
The ScanActivity is running and see BLE devices but do not see the TinyDuino

- How the app should work (where to look/debug in the code) ?
- Where is performed the time update ?


The code is installde from codevender but not from Arduino IDE (it look for Time.h and TinyScreen.h)

The time is displayed, buttons works, but it is not sync with the phone
- I assume ble_rx_buffer is filled by BLEsetup() ?
- Where the TinyDuino id is sent to the phone ?

Thanks !

TinyDuino Processors & TinyShields / TinyScreen Glasses
« on: March 16, 2015, 08:18:01 AM »

A little weird question but does anybody know where to buy a prism for TinyScreen (like Google Glasses).

The idea would be to see throught prism and see screen too.


Has a newbies I would be very interested in tips / code sample to keep Tinyduino alive for month on battery.

I saw some article doing some "wakeup" stuff to reduce power consumption. And removing some interrupt to save battery.


I'm trying to log accelerometer to SDCard and display it on TinyScreen.

Everything should be fine but nothing is write on the Card
- The card is Formated
- The SD example ar OK
- I use TinyScreen + TinySD + TinyUSB + TinyDuino

void setup(void) {
  Serial.begin(9600); while (!Serial) { ; }
  Serial.print("Initializing SD card...");
  pinMode(10, OUTPUT);
  if (!SD.begin(10)) {  Serial.println("Card failed, or not present"); return; }

void writeSD(long delta, long time){
  File dataFile ="datalog.json", FILE_WRITE);
  String str = "{ \"delta\": " + String(delta*250/1000) + ", \"duration\":" + String(time*250/1000) + "}";
  if (SD.exists("datalog.json")) {
    Serial.println("datalog.json exists.");

And SD.exists() return it do not exists ... any idea ?

User Projects / Code Examples / Tiny Offline Activity Tracker
« on: October 20, 2014, 05:28:06 PM »
How should I proceed to make an activity tracker ?

- Accelerometer to track moves
- Store changes somewhere ??? in JSON with axes and date

Should I store data in memory and download it by USB or should I store it on micro SD Card ? Do I need Tiny Clock to store time ?

May be it's a bad idea for TinyCircuits and there is already a dead simple product working offline ?


Pages: 1
SMF spam blocked by CleanTalk