Monochron Temperature Sensor
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
-
- Posts: 40
- Joined: Sat Jul 14, 2012 11:12 am
Re: Monochron Temperature Sensor
Yup, 100% sure.
- adafruit_support_bill
- Posts: 88155
- Joined: Sat Feb 07, 2009 10:11 am
Re: Monochron Temperature Sensor
Try disconnecting and re-connecting the USB end. The FTDI cable should be recognized by your computer regardless of whether anything is connected to the serial end.
-
- Posts: 40
- Joined: Sat Jul 14, 2012 11:12 am
Re: Monochron Temperature Sensor
Still getting the same error. I tried a different USB port too.
- adafruit_support_bill
- Posts: 88155
- Joined: Sat Feb 07, 2009 10:11 am
Re: Monochron Temperature Sensor
Can you go back to the last configuration that worked? (prior to the processor swap)
-
- Posts: 40
- Joined: Sat Jul 14, 2012 11:12 am
Re: Monochron Temperature Sensor
Yep, everything works fine when I put the processors back.
-
- Posts: 40
- Joined: Sat Jul 14, 2012 11:12 am
Re: Monochron Temperature Sensor
OK, I tried using the monochron's processor on the Arduino PCB and it doesn't work either (neither pin 15 or any others). So I guess the problem is the processor. Is it possible I was sent a defective one?
- adafruit_support_bill
- Posts: 88155
- Joined: Sat Feb 07, 2009 10:11 am
Re: Monochron Temperature Sensor
Given that the display and other functions work, I don't think it is a bad processor. Looking closer at the design files, I see that the Monochron's processor clock is configured differently than the Arduino's. That explains why a direct swap doesn't work.
-
- Posts: 40
- Joined: Sat Jul 14, 2012 11:12 am
Re: Monochron Temperature Sensor
So, if the processor is fine and the sensor works on the Arduino, it sounds, to me, like it's a software difference between the Arduino and the monochron that is causing this not to work. Does that sound right? Is that possible?
- adafruit_support_bill
- Posts: 88155
- Joined: Sat Feb 07, 2009 10:11 am
Re: Monochron Temperature Sensor
I suspect it may be the clock difference. The DHT library uses a 'bit-banged' protocol and the timing will be different with the different clock rate.
-
- Posts: 40
- Joined: Sat Jul 14, 2012 11:12 am
Re: Monochron Temperature Sensor
Would it be possible to modify the DHT library to work with the monochron? Could you possibly point me in the right direction?
- adafruit_support_bill
- Posts: 88155
- Joined: Sat Feb 07, 2009 10:11 am
Re: Monochron Temperature Sensor
Looking at the code, all the timing is done with millis(), delay() and delaymicrosecond(). These should work as long as the correct clock frequency is specified in the boards.txt file for the Monochron.
The other thing to check is the pin mappings in pins_arduino.c. Make sure that pin 24 is mapped the same as the Arduino.
The other thing to check is the pin mappings in pins_arduino.c. Make sure that pin 24 is mapped the same as the Arduino.
-
- Posts: 40
- Joined: Sat Jul 14, 2012 11:12 am
Re: Monochron Temperature Sensor
So, I don't need to modify the DHT library?
I've attached the monochron directory of my hardware folder. Could you take a quick look to see if I made the correct modifications? Thanks
I've attached the monochron directory of my hardware folder. Could you take a quick look to see if I made the correct modifications? Thanks
- adafruit_support_bill
- Posts: 88155
- Joined: Sat Feb 07, 2009 10:11 am
Re: Monochron Temperature Sensor
That is what it looks like. But it is possible there may be other, less obvious timing dependencies in there.So, I don't need to modify the DHT library?
Unfortunately, we can't realistically get involved with debugging modifications to unsupported code. You might try contacting the people that developed the Arduino port of the Monochron.Could you take a quick look to see if I made the correct modifications?
-
- Posts: 40
- Joined: Sat Jul 14, 2012 11:12 am
Re: Monochron Temperature Sensor
It looks like the DHT library was the problem. I'm using this library now (http://arduino.cc/playground/Main/DHTLib) and it works!
Thanks so much for all your patience with this
Thanks so much for all your patience with this
Please be positive and constructive with your questions and comments.