Help with TX RX Temp Unit Please

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 5.
To post in this forum you must have a registered copy of Flowcode 5 or higher.

Moderator: Benj

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times
Contact:

Re: Help with TX RX Temp Unit Please

Post by Enamul »

Hi Stuart,
You can start reading my following thread if you already not gone through. Here I have shown how to use the sensor. If you manage to use the DHT sensor and the code. I will post code how to send data to RX.
http://www.matrixmultimedia.com/mmforum ... =7&t=11555
Enamul
University of Nottingham
enamul4mm@gmail.com

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times
Contact:

Re: Help with TX RX Temp Unit Please

Post by Enamul »

Hi Stuart,
Did you manged to test the code attached in the link I have posted for DHT11?
Enamul
University of Nottingham
enamul4mm@gmail.com

User avatar
acestu
Posts: 1720
Joined: Thu Dec 01, 2011 9:36 pm
Location: Macclesfield UK
Has thanked: 783 times
Been thanked: 223 times
Contact:

Re: Help with TX RX Temp Unit Please

Post by acestu »

Hi Enamul,

I have been busy putting together your DHT-11 circuit, and Wow it worked first time, I must be improving, anyway here it is:

http://www.youtube.com/watch?v=M6fabSeBmLU


Thanks
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.

medelec35
Matrix Staff
Posts: 9520
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2585 times
Been thanked: 3815 times
Contact:

Re: Help with TX RX Temp Unit Please

Post by medelec35 »

Well done Stuart.

Its nice when things go well and work the first time.

Martin
Martin

User avatar
acestu
Posts: 1720
Joined: Thu Dec 01, 2011 9:36 pm
Location: Macclesfield UK
Has thanked: 783 times
Been thanked: 223 times
Contact:

Re: Help with TX RX Temp Unit Please

Post by acestu »

Hi Martin,

Hope your OK, Yes things are starting to fall in place more now and I am finding it easier to build the circuits....

thanks
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times
Contact:

Re: Help with TX RX Temp Unit Please

Post by Enamul »

Great! Glad to know that you managed to sort. So now you can add tx program with that. I'll post program with DHT11. By the way which chip you are using for DHT11?
Enamul
University of Nottingham
enamul4mm@gmail.com

User avatar
acestu
Posts: 1720
Joined: Thu Dec 01, 2011 9:36 pm
Location: Macclesfield UK
Has thanked: 783 times
Been thanked: 223 times
Contact:

Re: Help with TX RX Temp Unit Please

Post by acestu »

Hi Enamul

The chip is the 877A

Thanks
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times
Contact:

Re: Help with TX RX Temp Unit Please

Post by Enamul »

Fine. In that case it will be easy for me. so I will post program for 16f877a
Enamul
University of Nottingham
enamul4mm@gmail.com

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times
Contact:

Re: Help with TX RX Temp Unit Please

Post by Enamul »

Hi Stuart,
Here is the DHT11 code with Tx enabled. In this code Tx transistor is controller by RC1 and data out is RC0 as PORTB is busy with LCD.
Please let me know if you are not clear.
Attachments
DHT11v1.02.fcf
DHT11&TX
(44.93 KiB) Downloaded 282 times
Enamul
University of Nottingham
enamul4mm@gmail.com

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times
Contact:

Re: Help with TX RX Temp Unit Please

Post by Enamul »

Hi
Now the RX also changed as we are getting directly temperature value and we don't need to manipulate that in RX. I have modified the RX code and here it is..
Attachments
16f877a_rx_ TEMP.fcf
(15.5 KiB) Downloaded 235 times
Enamul
University of Nottingham
enamul4mm@gmail.com

User avatar
acestu
Posts: 1720
Joined: Thu Dec 01, 2011 9:36 pm
Location: Macclesfield UK
Has thanked: 783 times
Been thanked: 223 times
Contact:

Re: Help with TX RX Temp Unit Please

Post by acestu »

Hi Enamul,

another first time worker:

http://www.youtube.com/watch?v=RrfJOBWSQN0


Could I get rid of the LCD on the TX side and send the Relative Humidity to the receiver as well as the Temp ?

Thanks
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times
Contact:

Re: Help with TX RX Temp Unit Please

Post by Enamul »

Great!
One option is just don't connect LCD in TX or I can remove LCD from code but I need to send humidity so it's better I will post new code for both Tx and RX.
Enamul
University of Nottingham
enamul4mm@gmail.com

User avatar
acestu
Posts: 1720
Joined: Thu Dec 01, 2011 9:36 pm
Location: Macclesfield UK
Has thanked: 783 times
Been thanked: 223 times
Contact:

Re: Help with TX RX Temp Unit Please

Post by acestu »

Hi Enamul,

Oh that would be brilliant

Thanks
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times
Contact:

Re: Help with TX RX Temp Unit Please

Post by Enamul »

Hi

Here is the TX and RX code and you will see Temp and Humidity alternatively in the RX display. I kept LCD in Tx here to make sure program is working. If you conform that the code is working I will post code of Tx without LCD.
Attachments
DHT11_TX.fcf
(45.72 KiB) Downloaded 199 times
16f877a_rx_ TEMP.fcf
(16.16 KiB) Downloaded 196 times
Enamul
University of Nottingham
enamul4mm@gmail.com

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times
Contact:

Re: Help with TX RX Temp Unit Please

Post by Enamul »

Hi

Here is the Tx code without LCD. But I feel you should at least have two LEDs in the TX circuit to show you whether that circuit working OK or not. I put two LEDs in the code one is in PORTB0 and other in PORTB1. RB<0> is ON if there is no DHT11 sensor and RB<1> will ON if there is error in data transmission. It's upto you whether you want to use those or not. But I feel it would be better to have those to trouble shoot.
Attachments
DHT11_TX_NO_LCD.fcf
(41.93 KiB) Downloaded 194 times
Enamul
University of Nottingham
enamul4mm@gmail.com

User avatar
acestu
Posts: 1720
Joined: Thu Dec 01, 2011 9:36 pm
Location: Macclesfield UK
Has thanked: 783 times
Been thanked: 223 times
Contact:

Re: Help with TX RX Temp Unit Please

Post by acestu »

Hi Enamul,

The Temp and Humidity seem to be mixed up as I get Temp 48 and Relative Humidity 24

Apart from that it changes from temp to RH every 6 seconds...

thanks
Acestu

EDIT: I won't use your no lcd code yet until you say its ok
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times
Contact:

Re: Help with TX RX Temp Unit Please

Post by Enamul »

The Temp and Humidity seem to be mixed up as I get Temp 48 and Relative Humidity 24
Can you please post a video to have look what's going wrong?
Apart from that it changes from temp to RH every 6 seconds...
That's what I did..that is OK
Enamul
University of Nottingham
enamul4mm@gmail.com

User avatar
acestu
Posts: 1720
Joined: Thu Dec 01, 2011 9:36 pm
Location: Macclesfield UK
Has thanked: 783 times
Been thanked: 223 times
Contact:

Re: Help with TX RX Temp Unit Please

Post by acestu »

Hi Enamul,

That's weird, it has gone ok now, all is good

http://www.youtube.com/watch?v=CpG7KFg5Oa0

thanks
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.

User avatar
acestu
Posts: 1720
Joined: Thu Dec 01, 2011 9:36 pm
Location: Macclesfield UK
Has thanked: 783 times
Been thanked: 223 times
Contact:

Re: Help with TX RX Temp Unit Please

Post by acestu »

Hi Enamul,

Can i use the no lcd code now ?

thanks
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times
Contact:

Re: Help with TX RX Temp Unit Please

Post by Enamul »

Yes, of course. That's ready to use. Just I want to make sure that previous one is working. If you want to show both Temp Humidity in LCD simultaneously please let me know. I can change the code to have that.
Enamul
University of Nottingham
enamul4mm@gmail.com

User avatar
acestu
Posts: 1720
Joined: Thu Dec 01, 2011 9:36 pm
Location: Macclesfield UK
Has thanked: 783 times
Been thanked: 223 times
Contact:

Re: Help with TX RX Temp Unit Please

Post by acestu »

Hi Enamul,

No what you have done the alternating temp and RH is a great idea and I will put the led's on too...

Thanks
Acestu
Laptop Mac Book Pro i7 retina El Capitan //// Tower/Intel i7-Windows 7 64 Bit, Toshiba i5 Laptop Windows 10
Computers are like air conditioners. They work fine until you start opening windows.

User avatar
Enamul
Posts: 1772
Joined: Mon Mar 05, 2012 11:34 pm
Location: Nottingham, UK
Has thanked: 271 times
Been thanked: 814 times
Contact:

Re: Help with TX RX Temp Unit Please

Post by Enamul »

That's fine. Let me know or better to have a video link. I really like your this idea :D
Enamul
University of Nottingham
enamul4mm@gmail.com

Post Reply