Recent Posts

Pages: 1 [2] 3 4 ... 10
TinyDuino / Re: Sleep for 300ms
« Last post by evilkos on July 27, 2019, 03:51:47 PM »
Found it. The sleep() function can be found in this Arduino library:

Works perfectly on my TinyScreen+ (Atmel SAM D21). Also depends on a very handy RTCZero library that has all the methods needed to manipulate the clock and set alarms. That's how it wakes the device up, using the RTC clock, which limits the minimum deep sleep duration to 1 second. Can't guarantee waking up faster than 1 second using this method.
TinyDuino / Re: Sleep for 300ms
« Last post by evilkos on July 22, 2019, 01:58:14 PM »
Hmm... I think I found a good sample on how to set up an RTC clock alarm here:

Not sure if it's useful for my SAMD21 as it mentions AVR... But can be useful in more ways than one as I can also benefit from being able to tell time to regulate the life of the creature. Will try to incorporate the RTC alarm interrupt into my code and post my own answer with the snippet of what I end up with, if it's working.
TinyDuino / Sleep for 300ms
« Last post by evilkos on July 22, 2019, 11:04:41 AM »
Hey Tiny... Duiners!?

I'm doing a fairly simple virtual pet "game" using TinyScreen+ (Video Player kit). It's mostly short processed videos of our pet in an interactive shell so that it's kind of "alive" and has "needs" (tamagotchi like). Still WIP, I have a strict deadline for a gift to my wife :))

Would be neat to make it less power hungry. How do you make TinyScreen+ sleep for, say, 300ms (consuming very minimal power)? I think I figured out how to do deep sleep interrupted by press of a button:

    attachInterrupt(TSP_PIN_BT1, blink, LOW);
    attachInterrupt(TSP_PIN_BT2, blink, LOW);
    attachInterrupt(TSP_PIN_BT3, blink, LOW);
    attachInterrupt(TSP_PIN_BT4, blink, LOW);
    delay(500); // Just to ignore the already pressed button for 0.5s
I'm pretty new at C++ and embedded. Looks as if this works (does it look so to you?), but still measuring the battery life with and without this mode on. What I cannot figure out though, is how to make it wake up by itself, say in 300ms? I know I need to crank up some magic clocks like TC5 and fiddle with some register, but I decided to not read the entire datasheet for SAMD21 just yet and ask if maybe some one has a routine handy for sleeping? And all of that is assuming that the built-in "delay" function is not good. I looked at its source code and it looks like it's just a `while` loop, so must be burning through these mAh pretty quick.

Willing to keep doing my research, but hit a roadblock for now, tough to get oriented in the world of C++ in a couple of weeks (I'm a .NET dev)
Tiny Arcade / Re: Cutie Critters - a Neo Retro Game
« Last post by rdotdisplays on July 10, 2019, 12:06:23 PM »
looking nice, will try to download and play.
TinyLily / Re: TinyLily documentation and upload instructions?
« Last post by lennevia on July 09, 2019, 06:19:48 PM »
Hey there!

We took your feedback to heart and completely updated all of our TinyLily tutorials, including pinout images for all of our boards.

I hope this helps! The updated TinyLily tutorial can be found here:

Thank you for your feedback!
TinyLily / Re: USB board getting super hot
« Last post by rdotdisplays on July 09, 2019, 12:30:04 PM »
check your circuit wires and connections , loose connection sometime increase the temperature with burning smell.
General Discussion / Re: Have you ever built Blinking LED Circuit?
« Last post by rdotdisplays on July 09, 2019, 12:21:31 PM »
You can also use flexible displays for the same
TinyDuino / Re: ARDUINO IDE doesn't have an option for a Tinyduino board option
« Last post by dufflexo on June 29, 2019, 12:28:25 AM »
Have you done the TinyDuino Setup Tutorial? - http://learn.tinycircuits.com/Processors/TinyDuino_Setup_Tutorial/
TinyDuino / ARDUINO IDE doesn't have an option for a Tinyduino board option
« Last post by dufflexo on June 27, 2019, 10:37:34 PM »
Hey so i'm very new at programming and building things with small electronics. I have come to a point where i don't know what to do. Im building a GPS cat tracker and have put the parts together. Here is where i'm stuck. I put some code in the Arduino IDE program and it says it doesnt recognize the board. However when i go to change the board type to a TinyDuino processor board, there's no option for it. I've attached screenshots of what im doing. Any help will be greatly appreciated thank you!
Pages: 1 [2] 3 4 ... 10