/arduino490

espnow+lora+sx1276+iot+mqtt

Apache License 2.0Apache-2.0

arduino490

https://youtu.be/wDA_jxWCRw4

(ESPNOW#9) ESPNOW➕LoRa(SX1276)➕IoT
녹칸다의 ESPNOW시리즈이다!
이번편은 ESPNOW으로 수집된 정보를 LoRa로 변환해주는 내용을 주제로 해보도록 한다!
보드 3개 정도로 예시를 구현하면 될 것 같다!
A보드와 B보드는 ESPNOW로 연결되어 있다!
B보드와 C보드는 LoRa로 연결되어있다!
C보드는 인터넷 공유기와 연결되어서 외부로 데이터를 송신한다!(MQTT)
C보드가 MQTT로 전송하는 데이터를 스마트폰에서 확인한다!

1.A보드에 센서가 있을때 스마트폰에서 데이터를 확인할 수 있도록 한다!(센서는 녹칸다가 적당히 아무거나 준비함)
2.A보드에 릴레이가 있을때 스마트폰에서 제어할 수 있도록 한다!
이런 내용을 주제로 해서 아무거나 만들고 싶은거 만들어본다!

(실제로한거)

A,B,C보드 3개가 있고 A와 B는 ESPNOW로 연결되고 B와 C는 LoRa로 연결된다!

1.A와 B사이의 ESPNOW통신예제를 간단히 구현하라!

490-1_bb

2.B와 C사이의 LoRa통신 예제를 간단히 구현하라!

490-2_bb

3.A가 보낸 메시지를 B가 ESPNOW로 받은다음 C쪽으로 LoRa통신으로 전송해서 화면에 출력하시오!

490-3_bb

4.(3)예제에서 C보드가 메시지를 수신했을때 MQTT로 메시지를 전송하도록 하시오!(결과를 스마트폰에서 확인하시오)

5.int형변수2개와float형변수 2개가 있을때 A에서 B로 전송하고 B에서 C로 전송한다음 C가 JSON형태로 스마트폰으로 전송하도록 하시오!

6.스마트폰에서 녹칸다가 전송한 문자열을 MQTT를 이용해서 C로 전송하고 C에서B로 LoRa로 전송하고 B에서 A로 ESPNOW로 전송해서 A의 시리얼모니터화면에 숫자를 출력하시오!

7.A보드에 LED가 4개있을때 C보드에서 전송한 명령에 의해서 개별제어되도록 해보시오!(10=1번LED/OFF, 21=2번LED/ON)

490-7_bb

8.A보드에 온습도센서(DHT-11)을 D3에 연결하고 온도와 습도값을 JSON포멧으로 MQTT로 전송하시오!

490-8_bb

9.(논외) A에서B로 B에서C로 LoRa를 이용해서 전송하시오!

490-9_bb

(Machine translation)

It is Nockanda's ESPNOW series!
In this episode, the topic of converting information collected with ESPNOW to LoRa is the subject!
I think it would be enough to implement an example with about 3 boards!
A board and B board are connected by ESPNOW!
Board B and C board are connected with LoRa!
The C board is connected to the Internet router and transmits data to the outside! (MQTT)
Check the data transmitted by the C board with MQTT on your smartphone!

1.When there is a sensor on the A board, make it possible to check the data on the smartphone!
2.When there is a relay on the A board, it can be controlled from the smartphone!
Let's make something we want to make with this topic!

(actually done)

There are 3 boards A, B, and C, A and B are connected with ESPNOW, and B and C are connected with LoRa!

1.Simple implementation of ESPNOW communication example between A and B!

2.Simple implementation of LoRa communication example between B and C!

3.B receives the message sent by A through ESPNOW, then sends it to C through LoRa communication and prints it on the screen!

4.(3)In the example, when board C receives a message, send the message by MQTT! (Check the result on your smartphone)

5.When there are 2 int type variables and 2 float type variables, send from A to B, then from B to C, and then let C transmit to the smartphone in JSON format!

6.Transmit the string sent by Nockanda from the smartphone to C using MQTT, from C to B to LoRa, and from B to A to ESPNOW, and print the number on A's serial monitor screen!

7.When there are 4 LEDs on board A, try to control them individually by the command sent from board C! (10=No.1 LED/OFF, 21=No.2 LED/ON)

8.Connect the temperature and humidity sensor (DHT-11) to D3 on the A board and send the temperature and humidity values ​​in JSON format to MQTT!

9.(Out of topic) Send from A to B, from B to C using LoRa!