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 - maxouille

Pages: 1
1
TinyDuino Processors & TinyShields / Load battery without USB Board
« on: May 09, 2017, 04:44:21 AM »
Hi everyone !

I wonder if it's possible to load battery without usb board. I would like to add an extra micro-usb connector (https://www.sparkfun.com/products/12035) in order to move the loading slot. Moreover, I want to power up another device with the TinyDuino Processor board without code in it. The processor board would act as a battery controler.

Can I load the battery by connecting the micro-usb board onto the pins under the processor board ? These pins are located under the micro-JST connector.

Thanks

2
Hi guys !

I encountered some problems with TinyDuinos.

So I want to connect a PN532 from adafruit (http://www.adafruit.com/products/789) in SPI and a SD card from Tiny-Circuits (https://www.tiny-circuits.com/tiny-shield-micro-sd.html) which is already in SPI on pin 10.

I put the SS pin of the NFC board on IO4. When i use the NFC board or the SD Card separately it works fine.
However, when i try to initialize both, the SD Card failed and the NFC board too.
I suppose it's because SD use pins that NFC need or inverse.

Here is my code, very simple sketch :

Code: [Select]
#include "PN532_SPI.h"
#include "PN532.h"
#include "NfcAdapter.h"

#include <SPI.h>
#include <SD.h>

/** NFC ATTRIBUTES */
PN532_SPI interface(SPI, 4); // create a PN532 SPI interface with the SPI CS terminal located at digital pin 10
NfcAdapter nfc = NfcAdapter(interface); // create an NFC adapter object

void setup() {
  Serial.begin(9600);


 if (!SD.begin(10)) {
  Serial.println(F("failed"));
 }
 else {
  Serial.println(F("success"));
 }

  nfc.begin();
}

void loop() {
  // put your main code here, to run repeatedly:

}

I use this libraries :
NFC : Seed studio
SD : Adafruit SD

Thank you very much !

Maxouille

3
Hello guys !

I'm trying to send data from arduino to processing sketch with the regular BT shield.

I am able to send data from the processing sketch to the TinyDuino but not from the TinyDuino to the computer.

Connect my shield to the PC create 2 COM Ports (In and out). To send data from the computer to the TinyDuino, I use the out port. So to retrieve data from the TinyDuino on the computer, I use the in port.

Here is my code, very simple one and does not work.
PROCESSING :
Code: [Select]
import processing.serial.*;
import java.lang.String;

Serial myPortRetrieve;
String myString = null;

void setup() {
 
 println(Serial.list());
 //IN PORT
 myPortRetrieve = new Serial(this, Serial.list()[1], 9600);
 myPortRetrieve.bufferUntil(10);
 myPortRetrieve.clear();
}

void draw() {
  while (myPortRetrieve.available() > 0) {
    myString = myPortRetrieve.readStringUntil(10);
 }
  if (myString != null) {
   println(myString);
  }
}

ARDUINO :
Code: [Select]
void setup() {
  Serial.begin(9600);
}
void loop() {
  Serial.println("heelo world !");
  delay(1000); 
}

Thx !

Pages: 1
SMF spam blocked by CleanTalk