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
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 :
2015.06.19_16:05:02
2015.06.19_16:05:12
2015.06.19_16:07:02
2015.06.19_16:09:02

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.


2
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, sen.se cookies are small ! Even if it is DIY adding shields will enlarge the object

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

Following this question:
http://forum.tiny-circuits.com/index.php?topic=273.0

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 sen.se  (https://sen.se/store/cookie/)

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 ?

4
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 ...

5
TinyDuino Processors & TinyShields / Re: TinyScreen Smartwatch
« on: March 19, 2015, 11:16:19 AM »
I install the app from codebench
https://codebender.cc/sketch:91833#TinyScreen_Smartwatch.ino

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, ...).

6
Ok thanks

For the SD Card I use the tutorial in SDCard page:
https://tiny-circuits.com/tiny-shield-micro-sd.html

For the Accelerometer I use the tutorial in page:
https://tiny-circuits.com/learn/tinyshield-accel

For the TinyScreen I follow projects here:
https://tinycircuits.hackster.io/

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

7
Thanks, Yes here is the PastBin:
http://pastebin.com/7QdXFYzZ

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

8
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)


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

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

Thanks !

10
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)

Android:

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 ?


Tinyduino:

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 !

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

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.

Thanks

12
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.

Thanks

13
Hi,
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) { ; }
  Wire.begin();
  ...
  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 = SD.open("datalog.json", FILE_WRITE);
  String str = "{ \"delta\": " + String(delta*250/1000) + ", \"duration\":" + String(time*250/1000) + "}";
  dataFile.println(str);
  dataFile.close();
 
  if (SD.exists("datalog.json")) {
    Serial.println("datalog.json exists.");
  }
}

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


14
User Projects / Code Examples / Tiny Offline Activity Tracker
« on: October 20, 2014, 05:28:06 PM »
Hi,
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 ?

Thanks

Pages: 1
SMF spam blocked by CleanTalk