Wireless temperature transmission from multiple sources to one controller

Hi, I built a device that activates a relay depending on the difference between two temperatures measured with thermocouples connected to an ArduinoUNO board with MAX6675. (attached is a picture of the device and the code used for it)

Now I wan't to build a device that activates independent relays depending on the difference between independent pairs of temperature (T and T', Job and Sample respectively). Also, I want T to be wireless transmitted to the controller. (this would be the connection between the emitter and the receiver in the attached sketch).

I was thinking of using:

  • NANO boards to get T from jobSensor and send it through the emitter
  • MEGA board to get T through receiver, get T' from sampleSensor, activate relay depending on difference between T and T'

Are this boards adequate for the job? Is there a better option?

What do you recommend for the sensors, emitters and receivers?

Temperature Range: [0-70] degC
Max Distance between emitter and receiver: 100m
Max number of Job-Sample pairs: 5

2_MAX6675___Relay.ino (978 Bytes)

Hi,
The pictures did not attach unfortunately.

Your layout should work.

  • Three remote Nanos
  • Each monitoring Temperature with MAX6675 interface.
  • Radio link from each.
  • One Mega (or Nano or UNO) to receive both temperatures.
  • Controller to control a relay depending on the difference of the two received temperatures.

What radio wireless units are you thinking of using?
nRF24l01 or nRF24l01+ will fit the bill for your layout of two remotes and one base unit.

Tom... :slight_smile:

Hi,
Ops diagrams.



Thanks.. Tom.. :slight_smile:

Hi,

If you use nRF24L01 system, you will only need 4 units, one unit at the Mega can communicate with all the other three separately.

Here is a good site to start;
https://arduino-info.wikispaces.com/Nrf24L01-2.4GHz-HowTo

also google nrf24l01 arduino

Hope it helps.. Tom.. :slight_smile:

You may wish to clarify your intended environment. 100m outdoors with clear line of sight is much different to 100m inside a factory/warehouse where there is reflection and electrical noise. Also you need to specify what your power considerations might be- is there mains power at all sites or do you need to run on battery or solar?

The actually data collection and activation seems straightforward and can probably use any arduino board.

Thanks Tom and rw.

Attached is a map of the location the receivers and the emitters, and the respective distance from the latter to the former.

The enviroment is a pre-cast concrete factory. For example, between emitter1 and receiver there would be casting moulds, piles of beams, electrically powered cranes, forklifts and labourers.

Hi,
Look at the nRF24L01 +.
It has an amplifier on it and an aerial socket and aerial.

If needed you can add coaxial lead to elevate the aerial.

For your environment you may have to purchase a couple of these units and use some simple code, possibly from the one of the examples in the libraries that are available for the nFR unit.

And place them at your locations and see what you can achieve.

I'm sure most of the libraries has a simple link test code that would help.

Tom... :slight_smile:

Tom, thanks a lot for your help.

I'm wondering how you put images in your posts, when I click on "Insert an image" it asks me for an URL, so I'm guessing I'd have to upload it on the web and then post it.

Tom,

I read that the NRF24L01 has 1Mbps and 2Mbps data-rates, but the NRF24L01+ has also a 250Kbps data-rate.

I'm wondering if this limits me to transmit only 3 different temperatures, or can I transmit more than one temperature at the same data-rate?

How many bytes of data do you need each temperature? How fast will the temperatures change?
You could likely send at 9600 and be on top of tens of them all the time.

"I'm wondering how you put images in your posts, when I click on "Insert an image" it asks me for an URL, so I'm guessing I'd have to upload it on the web and then post it."
Attach the image, click post.
After the post, right click, copy the image address.
Modify the post, paste it back in using img tags.

I need to read the temperature between every 1 to 10 seconds. I don't know what you mean by "How many bytes of data do you need each temperature?"

So you are saying I could transmit from more than 10 emitters to 1 receiver at the same time?

This is the one I got: http://www.ebay.com.au/itm/251537720554

This Simple nRF24L01+ Tutorial may be of interest.

...R

If I connect a MAX6675 and a nRF24L01 to the same Arduino board, should they share digital pins for any of their connections? Maybe for the SCK?

If both are SPI, then they share SCK, MOSI, MISO, and a unique chip select/slave select each.
May need 5V/3.3V buffering as well.

Looking at that satellite image: making direct connections may be tricky.
Does your plant have WiFi coverage? If so that could be another way to link them together. As long as they all have WiFi connection you're good to go.

Would "chip select" be the CS connection in the MAX6675 and the CSN connection in the nRF24L01?

Would the MISO be the SO connection in the MAX6675? It seems there's no MOSI in the MAX6675.

The first stage of my project worked well with a 5V supply for both the relay and the MAX6675, and according to this post the nRF24L01 works better with 3.3v. I'm not familiar with the concept of "5V/3.3V buffering" and I don't see why would it be necessary.

My conclussion:

  • all the MAX6675-SO would share the same pin with the nRF24L01-MISO
  • all the MAX6675-SCKwould share the same pin with the nRF24L01-SCK
  • all the MAX6675 to 5V
  • the nRF24L01 to 3.3v
  • each MAX6675 its own pin for CS
  • one different pin for CSN, CE and MOSI in the nRF24L01

Am I right? Attached are pictures of all these connections.


@CrossRoads

tomasdelaveau:
My conclussion:

  • all the MAX6675-SO would share the same pin with the nRF24L01-MISO
  • all the MAX6675-SCKwould share the same pin with the nRF24L01-SCK
  • all the MAX6675 to 5V
  • the nRF24L01 to 3.3v
  • each MAX6675 its own pin for CS
  • one different pin for CSN, CE and MOSI in the nRF24L01

That sounds right - except that I don't know about the MAX6675 using 5v so I don't want to confirm or deny that bit.

...R

Hi, I was doing some research about SPI and the nRF24L01 and this is the sketch I've came with:

Are the connections correct? I don't know what the CE connection is.

Hello everyone,

Here is the last sketch I've made and the respective code for both the emitter (MAX6675 & nRF24L01) and the receiver (MAX6675 & nRF24L01 & Relay).

I've been reading the book "Practical Electronics for Inventors" (Paul Scherz) to get myself familiarized with the concepts involved in this project, along with several articles and posts found online. In spite of this, I'm hitting a wall with the complexity involved. I wold really appreciate if you could please check my sketch and codes and let me know if I'm on the right path. Also, I'm open for any recommended source to study.

Thanks,
Tomas

emitter.ino (1.75 KB)

receiver.ino (1.87 KB)