0

Hazzah WiFi module with a arduino micro
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Hazzah WiFi module with a arduino micro

by Nicn on Wed May 05, 2021 4:00 pm

I'm currently using a arduino micro to get sensor data like temperature. The only way I can think is to use a serial connection to get to the hazzah to send it out as WiFi to my phone using the blynk app. I'm running into issues getting the serial data to pass through to the hazzah so it will transfer.
I'm using this code to send it from the arduino micro. I'm assigning a number for temp to see if it will pass.

#include "SoftwareSerial.h"
SoftwareSerial ESPserial(0,1); //Rx, Tx
int Temp = 0;

void setup() {
ESPserial.begin(4800);}

void loop() {
temp = 60;
while ( ESPserial.available() ) {
ESPserial.write(Temp);
}

I'm using this on the hazzah to receive.
#include "SoftwareSerial.h"
SoftwareSerial ESPserial(3,1); //Rx, Tx
#include <ESP8266WiFi.h>
int Temp = 0;

void setup() {
ESPserial.begin(4800);
pinMode(3, INPUT);
pinMode(1, OUTPUT);

Serial.begin(115200); //for the WiFi output.

void loop() {
delay(500);
while ( ESPserial.available() ) {
Serial.write(ESPserial.read());
}}

Nicn
 
Posts: 1
Joined: Wed May 05, 2021 3:41 pm

Please be positive and constructive with your questions and comments.