I'm doing a hobby project and can't seem to get it working. Aim of the project is to transmit temperature values from a DS18B20 using an Arduino Uno and NRF24l01. This should be a low power project. Should implement low power mode on the Arduino. The transmitter part should power on once every minute, transmit temperature values and go to low power mode. The receiver is an Arduino Uno with NRF24l01 and a LCD monitor, The receiver should receive temperature values from transmitter and display on the LCD. Already worked on the code and the partial code is below.
TX part
#include <RF24Network.h>
#include <OneWire.h>
#include <DallasTemperature.h>
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
#define ONE_WIRE_BUS 2
#define CE_PIN 9
#define CSN_PIN 10
RF24 radio(9,10);
RF24Network network(radio);
const uint16_t this_node = 1;
const uint16_t other_node = 0;
const unsigned long interval = 2000; //ms
unsigned long last_sent;
unsigned long packets_sent;
const uint64_t pipe = 0xE8E8F0F0E1LL;
OneWire oneWire(ONE_WIRE_BUS);
DallasTemperature sensors(&oneWire);
void setup()
{
[login to view URL](9600);
[login to view URL]();
[login to view URL](pipe);
[login to view URL]("Dallas Temperature IC Control Library Demo");
[login to view URL](80, this_node);
[login to view URL]();
}
void loop(void)
{
[login to view URL](" Requesting temperatures...");
[login to view URL]("DONE");
float currentTemp;
currentTemp = [login to view URL](0);
[login to view URL]("Temperature for Device 1 is: ");
// [login to view URL]( ¤tTemp, sizeof(currentTemp) );
RF24NetworkHeader header(/*to node*/ other_node);
bool ok = [login to view URL](header,¤tTemp,sizeof(currentTemp));
[login to view URL](currentTemp);
uint16_t sensorValue = currentTemp;
}
RX part
#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
#include <RF24Network.h>
#include <OneWire.h>
#include <DallasTemperature.h>
#define ONE_WIRE_BUS 2
#define CE_PIN 9
#define CSN_PIN 10
RF24 radio(9,10); //NRF24L01 CE to pin9, CSN to pin10 on Uno
RF24Network network(radio);
const uint64_t pipe = 0xE8E8F0F0E1LL;
const uint16_t this_node = 1;
const uint16_t other_node = 0;
void setup()
{
[login to view URL](9600);
//delay(1000);
[login to view URL]("Nrf24L01 Receiver Starting");
[login to view URL]( 80, this_node);
[login to view URL](1,pipe);
[login to view URL]();
}
void loop()
{
//[login to view URL]();
float currentTemp;
if ( [login to view URL]() )
{
bool done = false;
while (!done)
{
//if ( [login to view URL]() )
RF24NetworkHeader header;
[login to view URL]( header,¤tTemp,sizeof(currentTemp) );
//[login to view URL]( ¤tTemp, sizeof(currentTemp) );
[login to view URL]("Temperature is ");
[login to view URL](currentTemp);
}
}
else
{
[login to view URL]("radio not available");
}
}
Code has a few working problems. The following websites were used to connect the circuit
[login to view URL]
[login to view URL]
hi
sir i am am an expert electrical engineer i can do it for you I have almost 7 years of experience in this field i assure you quality work and on time delivery
Please reply to discuss it further
Regards
Hello,
have a nice day. My name is Shahbaz Ali. i am running a setup for prototyping electronics. i will help you in setting up the hardware and to get it done. i will build the same circuit at my end and i will help you on skype or team viewer to assemble the circuit.
Please feel free to contact.
Best Regards,
Shahbaz.
Hello!
I am interested in your offer!
I have experience in programming (over 10 years) for power electronics with microprocessors PIC (microchip), AVR (ATMEL), STM32 (STeleсtronics) and others.
I recently registered here, and willing to work for a small cost, because I need to improve the rating.
Examples of my work you can see in the portfolio
Waiting for your reply.
Hello,
You have some work to do until a working prototype, however, I can write you the TX side, because the low power usage is pretty complex and not easy for hobbyists in general. I have experience with low power applications that work for weeks with thousands of transmissions on batteries <100 mAh.
So my preposition is as follows:
1. Low power code for TX side (100% done by me)
2. Consultation on the RX code (architecture, and bugs, I will simply make the code work :) )
If you wish I can give you a few tips and tricks on how low power is achieved, and what to consider in future projects.
In the end I started as a hobbyist 7 years ago and I am happy to help anyone that wants to make something with electronics.
Hope to hear from you soon,
Mihail Vrachanski
Hello,
I am an arduino and electronics enthusiast and I have made a similar projects several times.
I have the exactly same modules with me. If you also share the details of the LCD display you want to use would be great.
Note that: Although I am doing my engineering professionally, my other half side is doing this in a amateur soul, so enthusiast. Even after your project is done with me, I can always give you support about developing minor issues or small new features free of charge.
Thank you and good luck with your project.
Sener
I can do it without problem.
I have worked with oriented microcontroller C language, work with TCP / IP stack libraries for PIC microchip ENC28J60,
I worked with several Peripherals for PIC and Arduiono, also know a bit of HTML, JavaScript, Web server orientadp microcontroller,
language Arduino is much simpler and easier to program, certainly any application you need to count on me.
Hi, I am a Hardware Engineer and I have developed quite a few projects using the arduino. I read through your code and I am interested in taking it up. Do let me know if you are interested. Since I do not have the circuit, I would need to have a team viewer access to your system. Do let me know.
Thanks
I am a professional embedded developer. I will do my best to compete the project with full satisfaction without any compremisings.. expecting commitments from you.........
Hi,
I am electronic and telecommunication engineering student from University of moratuwa. I have done lots of project in arudunio (smart building, remote sprinkler, etc).
Please talk to me, and provide details about the circuit and component you are using.
I promise that i can do a great work for you.
hey i have already done the same work except for sending temperature data i was using motion sensor and sending data so if you want to get a full working low power design than you are at right place and listen i would help you debugging via skype and that is why my time of delivery is high
Hello my name is Tonci Zilic, an ICT student in Horsens Denmark
I have graduated in mechatronics with highest grades in Croatia. I can show you my final project wich was Arduino based mobile robot programmed in C++ so I know a lot about the language.
I think I can work for you because I have a lot of free time and can work whenever you want
feel free to contact me for CV or anything else anytime.