TinyCircuits

Recent Posts

Pages: 1 2 [3] 4 5 ... 10
21
TinyDuino / Re: possible to do beaconing with the BLE ST tinyshield?
« Last post by Brent on April 24, 2018, 12:01:28 PM »
Well, it is technically not that challenging to find a list of devices in range and compare signal strength. But, that wouldn't help you do anything very accurate nor reliable, particularly indoors. You would need to know the accurate fixed positions of several (more than 3) beacons in range at any given moment.

That would still only put you in the ballpark because signal strength is not a reliable metric of distance indoors. The only way I can think of to calibrate this would be to take several measurements at several locations to get a sort of portrait of what readings are typical of a given location. Then, when trying to locate the device, you would find the portrait that best matches the current readings.

You could improve on that by getting sophisticated by tracking the movement of the device to help predict where the device is most likely to be. This would help by filtering out locations that the device is unlikely to be at, even though the readings may otherwise be a good match.
22
TinyDuino / Re: Model Rocket Acceleration Project
« Last post by Brent on April 23, 2018, 11:38:36 AM »
I can't answer your question directly, but I'm not sure I understand why it's necessary. If you know the data collection rate, the data size, and the write time, why can't you simply manage accordingly? Or, is the issue that you need to know the exact time a measurement was taken, and you can't rely on that 0.5 ms being accurate?
23
TinyDuino / Re: BLE tinyshield not broadcasting bluetooth signal
« Last post by Brent on April 23, 2018, 11:09:50 AM »
So, what are you doing to verify that no signal is being transmitted? And, could you clarify what you mean by getting the signal test to work? Bluetooth can be a little tricky, and it has as much to do with what you are doing with the other device you are using to connect to your TinyDuino.
24
TinyDuino / Re: TinyScreen+ Screen Orientation (Portrait)
« Last post by editortom on April 22, 2018, 05:48:52 PM »
This may be obvious, but I solved a similar problem by rotating the image in the source file before I converted it to .tsv.



Hi, I also want to display .tsv files in a portrait mode. Can someone advise on how to do this? Thanks!
[/quote]
25
TinyDuino / avrdude: verification error; content mismatch
« Last post by Brent on April 22, 2018, 04:09:57 PM »
Hi,

I've been working with a TinyDuino on a very simple project. Things were going fine. Using Ardunio IDE 1.8.5, I was able to flash Blink.ino, then wrote a bit of code and flashed that several times as I developed it. One time, I flashed and it worked fine.  I made a tiny code change, flashed again, and it failed with:  avrdude: verification error; content mismatch.  I've tried probably about 100 times, since then, and still get the same error, no matter what I try to flash.  Other boards work fine (though I don't have another TinyDuino to try).

Nothing weird about the code and nothing to the hardware except a BLE TinyShield and a proto board that just gave me a push button, at this point.  I've removed all hardware except the TinyDuino (obviously) and the USB TinyShield, so as to eliminate any possible cause there.  I've also tried several different USB cables and ports.  So, that's not the problem.

The full output looks something like:
Code: [Select]
Arduino: 1.8.5 (Windows 7), Board: "Arduino Pro or Pro Mini, ATmega328P (3.3V, 8 MHz)"

Sketch uses 928 bytes (3%) of program storage space. Maximum is 30720 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
C:\Users\Me\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9/bin/avrdude -CC:\Users\Me\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9/etc/avrdude.conf -v -patmega328p -carduino -PCOM11 -b57600 -D -Uflash:w:C:\Users\Me\AppData\Local\Temp\arduino_build_474044/Blink.ino.hex:i

avrdude: Version 6.3, compiled on Jan 17 2017 at 12:00:53
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "C:\Users\Me\AppData\Local\Arduino15\packages\arduino\tools\avrdude\6.3.0-arduino9/etc/avrdude.conf"

         Using Port                    : COM11
         Using Programmer              : arduino
         Overriding Baud Rate          : 57600
         AVR Part                      : ATmega328P
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : Arduino
         Description     : Arduino
         Hardware Version: 3
         Firmware Version: 5.0
         Vtarget         : 0.3 V
         Varef           : 0.3 V
         Oscillator      : 28.800 kHz
         SCK period      : 3.3 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.00s

avrdude: Device signature = 0x1e950f (probably m328p)
avrdude: reading input file "C:\Users\Me\AppData\Local\Temp\arduino_build_474044/Blink.ino.hex"
avrdude: writing flash (928 bytes):

Writing | ################################################## | 100% 0.38s

avrdude: 928 bytes of flash written
avrdude: verifying flash memory against C:\Users\Me\AppData\Local\Temp\arduino_build_474044/Blink.ino.hex:
avrdude: load data flash data from input file C:\Users\Me\AppData\Local\Temp\arduino_build_474044/Blink.ino.hex:
avrdude: input file C:\Users\Me\AppData\Local\Temp\arduino_build_474044/Blink.ino.hex contains 928 bytes
avrdude: reading on-chip flash data:

Reading | ################################################## | 100% 0.43s

avrdude: verifying ...
avrdude: verification error, first mismatch at byte 0x0002
         0x00 != 0x5c
avrdude: verification error; content mismatch

avrdude: verification error; content mismatch

avrdude done.  Thank you.
I haven't messed with any configurations or the bootloader in any way.  Curiously, the following appears intermittently at the very end of the output above: 
Code: [Select]
the selected serial port does not exist or your board is not connected

Yet ... the upload works just fine, but the verification fails.  Plus, I can open the serial monitor and send data and see the RX light blink on the USB TinyShield.  So, it sure seems like the serial port is fine.  And, like I said, this comes and goes, and only appears after, "avrdude done. Thank you."  No matter what, the program never runs on the device.

At this point, I suspect the board itself is damaged or defective, in some way, but am not sure if there is something I can do to rule this out (or confirm), short of just ordering another board.  Any advice?
26
TinyDuino / Re: TinyScreen+ Screen Orientation (Portrait)
« Last post by Tremek on April 19, 2018, 06:18:11 PM »
Hello all!

I want to change the screen orientation for the TinyScreen+
It is currently landscape, and I wish to change it to portrait. I could not find any rotate method in the cpp file. These are the display.begin(), display.setBrightness(), display.startData(), etc. functions.

I know that I'm going about this incorrectly. But I'm sure that a solution to this would benefit the entire community. It was very surprising to me that no one has brought this up yet. Anyway, I hope this gets enough attention to yield a solution.

Thank you for being there when we needed you most!

Hi, I also want to display .tsv files in a portrait mode. Can someone advise on how to do this? Thanks!
27
TinyDuino / Re: Garbage returned to Serial monitor
« Last post by Larsonut on April 18, 2018, 10:34:56 PM »
Thank you for how to do I'm looking for it. Thank you very much
28
Tiny Arcade / Re: TinyArcade video downloads?
« Last post by Larsonut on April 18, 2018, 10:33:20 PM »
Thanks for the link. I'm looking for it. It helped me a lot.
29
TinyDuino / Re: Garbage returned to Serial monitor [solved]
« Last post by JamesNewton on April 09, 2018, 08:55:09 PM »
We purchased another batch, and we still had the same problem. The serial data coming back from the board is garbage. This is just the standard AnalogReadSerial program. The very first example under "Basics"

Problem turned out to be a bad setting in the IDE, totally my fault, but in classic form, I'm going to blame your documentation... I mean suggest an improvement to your docs. Your getting started tutorial
https://tinycircuits.com/blogs/learn/124803655-tinyduino-setup-tutorial
does make mention of the cause of the problem, in one line which was not clear to me:
"Remember, the TinyDuino is 8MHz, not 16MHz!"

I didn't understand that, because there is no mention of a different speed in the selection of the Arduino Pro or Pro Mini board in the IDE. It's on a second item in the Tools menu which only appears after selecting the board; it's on the processor menu. I never even noticed it, until I was showing my favorite rubber ducky how I was getting the error.


I would really suggest showing that menu selection as a separate sketch in your documentation if only for people like me who are complete idiots... I mean, sometimes miss things like that.
30
TinyDuino / TinyScreen+ Screen Orientation (Portrait)
« Last post by TheLastMoon on April 05, 2018, 07:20:58 PM »
Hello all!

I want to change the screen orientation for the TinyScreen+
It is currently landscape, and I wish to change it to portrait. I could not find any rotate method in the cpp file. These are the display.begin(), display.setBrightness(), display.startData(), etc. functions.

I know that I'm going about this incorrectly. But I'm sure that a solution to this would benefit the entire community. It was very surprising to me that no one has brought this up yet. Anyway, I hope this gets enough attention to yield a solution.

Thank you for being there when we needed you most!

Pages: 1 2 [3] 4 5 ... 10