TinyCircuits

Recent Posts

Pages: 1 ... 7 8 [9] 10
81
TinyDuino / Bluetooth problem, BLEsetup() and aci_loop() not declared in scope
« Last post by ccaian on November 09, 2019, 12:05:27 PM »
i attached my ino file. its a simple program that accepts bluetooth chars from the nrf toolbox app to spin the motor. but the two functions BLEsetup() and aci_loop() are not declared.

im guessing this is a library issue? but i double checked my code and it looks like i imported all the libraries correctly. i downloaded stble.zip and added it to the library.

sorry am new to this. appreciate your help in advance!
82
TinyDuino / Multiple questions please help
« Last post by jerry19968 on November 05, 2019, 10:42:33 AM »
Hi,

1. Is it possible to flash another bootloader into the mircocontrollers ? (such as hoodloader2)

2. In the tutorial for tinycircuit smartwatch, there is a commented line stating the following:
"ST BLE module for compatiblity with Nordic's virtual UART connection".

May I know what is Nordic's virtual UART connection?? As I may try to use this virtual UART connection to use other libraries. (such as BLE SDK arduino)

3. Please tell me if emulation of HID is it possible on this tinydruino. As I am doing a project.

Please do answer, thank you very much! :D
83
TinyDuino / Re: Maximum IO pin input voltage
« Last post by jlastofka on November 05, 2019, 08:36:12 AM »
I found the Microchip (manufacturer) spec for the processor and it says the maximum input voltage on the input pins is Vdd + .6V, so since we're running the processor on 3.3V the absolute max allowed Vin on the I/O pins is 3.9V

I'm going with that.
84
TinyDuino / Maximum IO pin input voltage
« Last post by jlastofka on November 02, 2019, 12:14:37 PM »
I've been searching the forum and the processor documentation but I can't seem to find the spec for the allowable input voltage on the digital IO pins. I saw one spot showing the Logic 0 and 1 levels for a 5V supply and a 3.3V supply setup, but not the maximum allowable.
Is it 5.5V, same as the max battery supply voltage? Does it depend on whether you're powering it from 3.3V or 5V (I doubt that)?
Someone telling me the value is somewhat helpful, but I'd like to know where it's listed officially.
Thanks.
85
TinyDuino / Re: Conflict between SD card and Accelerometer interface?
« Last post by jlastofka on November 01, 2019, 12:44:28 PM »
Well, it's finally all sorted out and working with my desired text outputs. In the end there was one more conflict as I loaded my original code back in. I had been using PIN 13 and the on-board LED for a blinking output before I had the SD card added into the system. Turns out that's a conflict with the SPI interface. I'll never forget that again:-)

That was likely my problem all along, but I'm sure I learned from going through this and from receiving the help.

Again, thanks for being attentive and supporting your customers. There are two of us out here doing about the same setup and we have a selection of your boards purchased already. Likely more to follow. They're really impressive little things.
86
TinyDuino / Re: Conflict between SD card and Accelerometer interface?
« Last post by jlastofka on October 31, 2019, 08:47:37 PM »
OK, I have it working now:-)

I used your example file and stripped out the parts about reading card types and directories, etc. I just want to write some text to a file.

I changed the SD startup command as shown below from your (now modified) file:

  // we'll use the initialization code from the utility libraries
  // since we're just testing if the card is working!
  if (!SD.begin(chipSelect)) {
    SerialMonitor.println("initialization failed. Things to check:");
   while (1);
  } else {
    SerialMonitor.println("Wiring is correct and a card is present.");
  }

And then to write text to the card I use:

  File dataFile = SD.open("datalog.txt", FILE_WRITE);

  // if the file is available, write to it:
  if (dataFile) {
    dataFile.println(dataString);
    dataFile.close();
    // print to the serial port too:
    SerialMonitor.println(dataString);
  }
  // if the file isn't open, pop up an error:
  else {
    SerialMonitor.println("error opening datalog.txt");
  }

Plus I had to increase the delay waiting for the serial port to initialize. I used 3000 ms but didn't try anything shorter.

I'm attaching the modified file in case you want to poke through it and see what I hacked up:-)    I'll clean it out some more and put in a little more of my final needs, a step at a time in case I break something and need to adjust.

Thanks again for the help, tips, ideas....   and for getting me close enough to get things working. It's nice to see the company's paying attention and taking the time to help people along.
87
TinyDuino / Re: Conflict between SD card and Accelerometer interface?
« Last post by jlastofka on October 31, 2019, 06:16:13 PM »
Actually, instead of digging into my example to find what doesn't work, could you just add a couple lines to your example that writes a few numbers of text data to a .txt file on the card? If I saw a working idea, I'd probably be done:-)

On the other hand, it sure would be nice to know why my idea works by itself but not in combination with the accelerometer files.
88
TinyDuino / Re: Conflict between SD card and Accelerometer interface?
« Last post by jlastofka on October 31, 2019, 05:32:06 PM »
So, this is where I'm failing now:

the code below works when I run it in a separate test program, but not when I add it to your example, or when I use it in my program that also uses the BMA250 files. I get the "error opening datalog.txt" message.

  File dataFile = SD.open("datalog.txt", FILE_WRITE);

  // if the file is available, write to it:
  if (dataFile) {
    dataFile.println(dataString);
    dataFile.close();
    // print to the serial port too:
    SerialMonitor.println(dataString);
  }
  // if the file isn't open, pop up an error:
  else {
    SerialMonitor.println("error opening datalog.txt");
  }

I've attached my Datalogger.ino file that runs and writes to the card. It's a pretty simple listing. I just can't get it to work in my other program or in your example....
89
TinyDuino / Re: Conflict between SD card and Accelerometer interface?
« Last post by jlastofka on October 31, 2019, 04:49:49 PM »
Thank you very much for helping on this. I loaded your example and I had to change the delay waiting for the serial port from 500 ms up to (I used) 3000 ms. I found that out before in something else I did that wasn't responding either. After that, your example runs, except it hangs on this line

root.ls(LS_R | LS_DATE | LS_SIZE);         and doesn't do anything.

I commented that out and the rest of it ran OK.
I'll now go in and try actually writing data to the SD card and I'll report back later.
Something up with that delay waiting for the port to respond....   
I set the baud to 9600 in the program by the way, so I don't have to change the monitor window every time I start it up.
Again, thank you for the response and help. It's a neat little product and a friend and I are using them to do some data acquisition during model rocket flights.
90
TinyDuino / Re: Conflict between SD card and Accelerometer interface?
« Last post by lennevia on October 31, 2019, 02:13:34 PM »
Hello,

I put together a little example using the Accelerometer TinyShield and the SD Card TinyShield. I am unsure what example you are using and put together, so I can't help you much further than writing something else. If you would like some more help, you can post the program you put together with comments detailing where the issue is you are encountering. Otherwise, the example I'm attaching compiles, uploads, and I am able to see Accelerometer output in the Serial Monitor.

Best,
Réna
Pages: 1 ... 7 8 [9] 10