Hey everyone, still me trying to get these board to comunicate. Now the problem is a bit different.
When i plug in the arduino in the computer it works perfectly and it responds to the comands in the arduino cloud dashboard, but when i try to power it through the teensy the build int led blincs and the arduino does not connect to wifi.
I don't think that it is due to code but here it is anyway
Teensy code:
Arduino nano 33 IOT code:
Here is also a photo of the breadboard connections:
When i plug in the arduino in the computer it works perfectly and it responds to the comands in the arduino cloud dashboard, but when i try to power it through the teensy the build int led blincs and the arduino does not connect to wifi.
I don't think that it is due to code but here it is anyway
Teensy code:
Code:
#define nano Serial7
const int baudRate = 115200;
void setup() {
Serial.begin(baudRate);
nano.begin(baudRate);
pinMode(13,OUTPUT);
}
void loop() {
if(nano.available()){
digitalWrite(13,HIGH);
Serial.print((char)nano.read());
delay(500);
}else{
digitalWrite(13,LOW);
}
}
Arduino nano 33 IOT code:
Code:
#include "thingProperties.h"
void setup() {
// Initialize serial and wait for port to open:
Serial.begin(115200);
pinMode(13, OUTPUT);
digitalWrite(13, HIGH);
// Defined in thingProperties.h
initProperties();
// Connect to Arduino IoT Cloud
ArduinoCloud.begin(ArduinoIoTPreferredConnection);
/*
The following function allows you to obtain more information
related to the state of network and IoT Cloud connection and errors
the higher number the more granular information you’ll get.
The default is 0 (only errors).
Maximum is 4
*/
setDebugMessageLevel(4);
ArduinoCloud.printDebugInfo();
}
void loop() {
ArduinoCloud.update();
// Your code here
if(led == HIGH) digitalWrite(13,HIGH);
else digitalWrite(13,LOW);
}
void onLedChange() {
Serial.print("Hello World");
Serial1.print("Hello World");
}
Here is also a photo of the breadboard connections: