Hello guys,
I am in a project to create Portable Weather Stations for Village farmers. In this project earlier I used nodeMCUs but since they has less of Analog pins, I have now switched to Arduino. I had also gone through I2C communication between Node MCU and Arduino, but finding less tutorials I have finally switched over to HC-12 and Arduino UNO. HC-12 is a powerful module that allows wireless communication between two arduinos upto a range of 1km. My earlier apparatus used BLYNK along with wifi to deliver data, but I don’t know how to integrate Blynk with HC-12.
Please help.
Good to know about the project you are doing. But, if you want to connect any board to Blynk, you do need some kind of internet connection, unless you are trying to run it on a local server.
And HC-12 module is basically used for communication between two arduino devices. It won’t help you in connecting to the internet.
And I think the reason you are using an HC-12 module is just because the place where your arduino located, lacks Wi-Fi connection. So, let me solve this problem by simply giving an example.
Assume that in the farm, there is a location, where the boss arduino is located with the HC-12 module.
And there are other arduinos around the farm from where they send the data like moisture, humidity, temperature etc. to the boss arduino. And the boss arduino will have the wifi connection to interact with Blynk server.
Instead of using Boss Arduino, you can use ESP8266 which already has Wi-Fi built in. And this time you don’t need to use the pins of the ESP. This would be an easier solution for you.
Using the combination of ESP & Arduinos like this, you can take advantage of long range data transmission of HC-12, and you will stay connected with Blynk as well.
Tip - You can use specific IDs for the other arduinos to specify, which arduino is sending data to the Boss ESP/Arduino. This will help you show data accordingly on the Blynk app.
Also, you can refer this video to get help in connecting HC-12 with Arduino
Maybe you could tell us more about the overall project, how you see it being used, and what sort of internet connectivity you will be using (if any).
I’d say that for communication from a remote device(s) to a centralised hub is best done using MQTT messaging rather than using Blynk.
Will the remote devices be battery powered, maybe with solar top-up, and therefore needing to use deep sleep?
If so, then an ESP device would probably be a better choice than an Arduino.
What sort of sensors are you using? I run a weather station using a NodeMCU and don’t use any analogue sensors at all.
Pete.
Thanks for your reply, actually the thing is I have a whole bunch of sensors, to name all the components used as per the pins they use:
-
Digital:
a. Indicative LEDs: 2 yellow, 2 green, 1 red and 1 blue (Separate input for each)
b. MQ-2 Digital Gas Sensor -
Analog:
a. 4 LDR (Separate output for each) --> To create a smart solar panel
b. 1 Solar Panel to measure solar influx radiation (Pyranometer)
c. 1 DC Motor at analog to measure windspeed (Anemometer)
d. I2C Devices: i. 0.96 inch OLED Display
ii. 16*2 I2C LCD
iii. BMP 280
iv. BH1750
e. Rain Sensor
f. Soil Moisture Sensor -
Both Analog & Digital:
a.GP2Y1010AU0F Optical Dust Sensor
b. pH Sensor -
Other than these:
a. 4 Solar Panels (6v each)
b. Arduino NANO --> Proposed
c. NodeMCU --> Proposed (Wanting to use no ESP32 since I am very poor at its connections and have already burnt 6 ESPs)
d.Arduino UNO
e. 2 HC 12 (Sender and Reciever) --> Proposed (Enhanced Communication)
f. Diodes
g. Electrolytic Capacitors --> Solar panel
h. Capacitors --> solar panel
i. 3–> 12 Volt DC Motors (Acting as Windmills to power arduino)
j. 3.7 V 110mAh Li-ion battery
k. Propellers
l. Servos --> For Smart Solar panel
It is being used to provide weather forecast of around 6 days prior.
I am planning to integrate this further with Arduino, Python and Keras. I am not familiar to MQTT so much and would like blynk because of its accessibility and short codes. I would like to use deep sleep as you mentioned.
Also, in near future planning to integrate this with GSM SIM 900
Sounds like a massive overkill, and an expensive rig to build and maintain.
Pete.
Please help me, I need to build this project, I wwould send the connections ASAP
Hi Pete .
Can I used HC-12 module to remotely 433 Mhz controlled switches using ASK ?
Please help me out
You can’t do that with a NodeMCU !
There is only one Analog input in A0
No idea I’m afraid, I’ve never used one.
Are you having range problems with regular 433MHz Rx and Tx devices?
Pete.
I need suggestions, could I use nodemcu with hc 12 as reciever and then post up values on blynk cloud
@Madmax2327 is this a personal project, college/university project, semi-commercial project, or something else?
Pete.
It’s a personal intender for commercialization. I am a student, currently in 10th class in a school in India. I know programming and connections a bitl. The thging is I need guidance. I hope you understand.
Regards
Sanchit Jain
personal project intended for commercialization
In that case you should contact the guys at Blynk.io, as a commercial product will require a commercial subscription, although the subscription model may be changing somewhat with Blynk version 2 (when it eventually appears).
They will probably be happy to give you some guidance regarding appropriate technology to use, and may be able to link you up with an existing Blynk partner show is doing something similar.
Pete.
Yes
I have a bearing wall between transmitter and receivers.
and receiver can’t be used with interrupt due to incoming interference. (super heterodyne )