Things used in this project

Schematics

ProMicro
Sparkfun 8-bit 32U4-based board

Code

Arduino ProMicro SketchC/C++
This is for a Sparkfun ProMicro or Arduino Micro using the 32U4 microcontroller. If another 8-bit AVR is used, please note you will need to change serial1 to serial.
Streaming library is available here: http://arduiniana.org/libraries/streaming/
/* Pro Micro Test Code
*/

  #include <Streaming.h>

  const byte  bootPin = 9;
  void setup()
  {
  pinMode(bootPin, INPUT);
  digitalWrite(bootPin, HIGH);    // enable pullup
  Serial1.begin(115200);          // This pipes to the serial TxRx
  Serial.begin(9600);             // USB serial, BAUD is just a placeholder
  Serial << "Initializing...\n\r";

  }

  void loop()
  {
  if (! digitalRead(bootPin)) {
    Serial1 << "\n\r";
    Serial << "\n\r";
    delay(1000);
    Serial << "Attempting to login as user Pi";
    Serial1 << "pi\n\r";
    delay(1000);
    Serial1 << "raspberry\n\r";
    delay(1000);
    Serial << "Attempting to write cache to SD\n\r";
    Serial1 << "sudo sync\n\r";
    delay(1000);
    Serial1 << "sudo sync\n\r";
    delay(1000);
    Serial << "Issuing the sudo reboot now command\n\r";
    Serial1 << "sudo reboot now\n\r";
    }
  }

Credits

Coffeemath
Ray Burnette

IT architect - retired AT&T... USAF-Secure Comm , Burroughs, Clemson U. School of EE Research, Southern Bell, BellSouth, SofKinetics, Inc. (President), AT&T IT

Contact

Replications

Did you replicate this project? Share it!

I made one

Love this project? Think it could be improved? Tell us what you think!

Give feedback

Comments

Similar projects you might like

Sigfox Forest Fire Detector
Intermediate
  • 999
  • 9

Full instructions

How to prevent forest from burning? A small Sigfox signal can prevent natural disasters. We will use an Arduino MKRFOX + a flame detector

LoRaWAN for Raspberry Pi with Worldwide Frequency Support
Intermediate
  • 2,862
  • 12

Full instructions

LoRaWAN LMIC 1.6 for Raspberry Pi with Dragino LoRA/GPS HAT or standalone RFM95W LoRa Module.

Using Common Cathode and Common Anode RGB LED with Arduino
Intermediate
  • 735
  • 14

Protip

Common Cathode and Common Anode RGB LEDs are two different kinds of RGB LEDs whose function is same but working is different.

Human-Following Robot with Kinect
Intermediate
  • 1,880
  • 20

Full instructions

Instead of using single camera and complicated image recognition algorithms we can take advantage of Kinect libraries.

Computerception
Intermediate
  • 27,142
  • 20

Full instructions

Why not put a Raspberry Pi into a 2007 netbook?

Raspberry Pi Google Assistant With Sleek Wood Box
Intermediate
  • 4,747
  • 26

Full instructions

l built a DIY Google AI Assistant using a Raspberry Pi, USB Speaker and USB microphone.

Sign up / LoginProjectsPlatformsTopicsContestsLiveAppsBetaFree StoreBlog