Did I Brick My Arduino?

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
asyork
 
Posts: 43
Joined: Wed Mar 24, 2021 7:07 am

Did I Brick My Arduino?

Post by asyork »

I have a Metro M4 Airlift Lite that I was trying to use to make https://learn.adafruit.com/epaper-weather-station

In another thread I was diagnosing the display showing the wrong colors. I tried to make a smaller/simple sketch to diagnose the problem and uploaded this to the Arduino:

Code: Select all

#include <SPI.h>
#include <Adafruit_GFX.h>    // Core graphics library
#include <Adafruit_EPD.h>
#include <Fonts/FreeSans12pt7b.h>
#define SRAM_CS     8
#define EPD_CS      10
#define EPD_DC      9  
#define EPD_RESET -1
#define EPD_BUSY -1
Adafruit_IL91874 gfx(264, 176 ,EPD_DC, EPD_RESET, EPD_CS, SRAM_CS, EPD_BUSY);

void setup() {
  // put your setup code here, to run once:

    gfx.setTextColor(EPD_BLACK);
    gfx.powerUp();
    gfx.clearBuffer();
    gfx.setTextWrap(true);
    gfx.setCursor(10,60);
    gfx.setFont(&FreeSans12pt7b);
    gfx.print("Testing for Red vs Black");
    gfx.display();

}

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

}
I'm not very familiar with coding, and particularly not familiar with C++, and just pieced together parts from the sketch in the guide into the base sketch in an attempt to just display some words on the eink display and see what color they were.

After uploading the sketch to the Arduino it became unrecognized by windows and the com port doesn't appear in the Arduino IDE. Coincidentally the issue I had with the guide was fixed by MakerMelissa right after I did this and I'd like to get the working weather station up and running if it's possible. Google makes it sound like I need to buy another Arduino and a few small electronic pieces to fix it, but I'm hoping I can get it working with what I have.

Edit: Wanted to add some info after reading other threads. The power and L/RX lights come on on restart and the power light stays on, so I believe the unit it still functional.
Last edited by asyork on Wed Jun 01, 2022 8:37 pm, edited 1 time in total.

User avatar
dastels
 
Posts: 15658
Joined: Tue Oct 20, 2015 3:22 pm

Re: Did I Brick My Arduino?

Post by dastels »

What happens if you press reset, or double-press reset?

Dave

User avatar
asyork
 
Posts: 43
Joined: Wed Mar 24, 2021 7:07 am

Re: Did I Brick My Arduino?

Post by asyork »

You relied just as I updated with some more info about that, but double pressing does open the bootloader. I managed to forget about that being a thing despite doing it so many times in the past. I'll try to find the correct bootloader and see if I can get it working. Thanks.

User avatar
asyork
 
Posts: 43
Joined: Wed Mar 24, 2021 7:07 am

Re: Did I Brick My Arduino?

Post by asyork »

That did it. I checked the bootloader info before flashing it, and it had the newest one already as I just purchased it, but reflashing it made it work again. I uploaded the sketch that MakerMelissa updated and now my little weather station is working as expected. Now to try to tweak it for lower power use and try to get it to restart itself after errors.

User avatar
asyork
 
Posts: 43
Joined: Wed Mar 24, 2021 7:07 am

Re: Did I Brick My Arduino?

Post by asyork »

Did I do something obviously horrible in the code that would have caused that, or was it just some bad luck with something going wrong during the upload?

User avatar
dastels
 
Posts: 15658
Joined: Tue Oct 20, 2015 3:22 pm

Re: Did I Brick My Arduino?

Post by dastels »

Nothing about the code looked odd. Sometimes these things happen. I'm very happy you got it working.

Dave

User avatar
asyork
 
Posts: 43
Joined: Wed Mar 24, 2021 7:07 am

Re: Did I Brick My Arduino?

Post by asyork »

Thanks, just trying to learn.

Locked
Please be positive and constructive with your questions and comments.

Return to “Metro, Metro Express, and Grand Central Boards”