Hi There
I have a MKR Iot Carrier and MkR1000 and I can't seem to get the display to power, Do I need the battery to do this or can i be powered from the micro usb ?
I have tried with both the supplied cable attached and unattached , The battery and button appear the working fine
Any Advice would greatly appreciated
Cheers
James
k3tn
April 10, 2021, 1:37pm
2
I use the IoT Carrier board with a MKR WiFi1010 and it powers the other boards (like MKR ENV) fine when it is powered via the USB connection - don't need the battery installed.
Thanks for reply
I am still can't get he display to work everything else is fine
This code i am tested, I can only assume i doing something wrong in the code or my IoT carrier is faulty
jamesOB:
#include <Arduino_MKRIoTCarrier.h>
MKRIoTCarrier carrier;
float temperature = 0;
float humidity = 0;
void setup() {
Serial.begin(9600);
carrier.begin();
carrier.display.init(240, 240);
//carrier.pinMode (TFT_BLACKLIGHT, OUTPUT);
//carrier.digitalWrite (TFT_BLACKLIGHT,HIGH);
carrier.display.fillScreen(ST77XX_WHITE);
}
void loop() {
temperature = carrier.Env.readTemperature();
humidity = carrier.Env.readHumidity();
carrier.Buttons.update();
Serial.print("Temperature = ");
Serial.print(temperature);
Serial.println(" °C");
Serial.print("Humidity = ");
Serial.print(humidity);
Serial.println(" %");
//function to print out values
if (carrier.Button2.onTouchDown()) {
printTemperature();
}
if (carrier.Button1.onTouchDown()) {
printHumidity();
}
}
void printTemperature() {
Serial.print("Print Temp");
carrier.display.fillScreen(ST77XX_RED); //red background
carrier.display.setTextColor(ST77XX_WHITE); //white text
carrier.display.setTextSize(2); //medium sized text
carrier.display.setCursor(30, 110); //sets position for printing (x and y)
carrier.display.print("Temp: ");
carrier.display.print(temperature);
carrier.display.println(" C");
}
void printHumidity() {
Serial.print("Print Humidity");
carrier.display.fillScreen(ST77XX_BLUE); //red background
carrier.display.setTextColor(ST77XX_WHITE); //white text
carrier.display.setTextSize(2); //medium sized text
carrier.display.setCursor(30, 110); //sets new position for printing (x and y)
carrier.display.print("Humi: ");
carrier.display.print(humidity);
carrier.display.println(" %");
}
Hi
I'm facing on your similar situation.
I purchased two sets of MKR IoT Carrier and MKR 1310.
I deploy and run some examples for MKR IoT Carrier like "Compose_Images".
If "Compose_Images.ino" is deploy and run, nothing happens on the TFT display.
Both MKR IoT Carrier is same.
Have you already resolved this issue?
Regards,
K
It turned out to be a faulty MKR IoT Carrier, I got it swapped out and my code worked first time on the new board
Hi @jamesOB
Thank you for the prompt reaction.
I will contact the official support soon.
Regards,
K
system
Closed
October 22, 2021, 2:32am
7
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.