Go Down

Topic: DS18B20 750ms delay bypass? (Read 8 times) previous topic - next topic

Molehs

Well any further progress on my end is halted for 3-5 weeks. I some how fried my Arduino while hooking up my LEDs and now I'm waiting on a new one I ordered from China... :(

willnue

Sorry to hear about your Arduino. Are you sure it's fried? They are usually pretty tough to break. I would check the Installation and Troubleshooting forum and see if maybe it's just resting...  :smiley-sleep: Why China? Do you know there are plenty of places in the US to purchase them from?

On your questions, my understanding is that the "P" array contains the data, which includes the temperature reading and the "CRC" is the checksum against the data to ensure it is correct. You don't really need to use either of them, just the results of the calculation on them (the temp). They are in the sample code to show what is being read from the sensors for troubleshooting etc... The "addr[]" array contains the address ("R") and yes it is a global variable that is the same in both startTempConvert and readTemp for any trip through the main loop.

I believe I read somewhere the order the sensors are returned from the search is related to which one answers first, second etc... and I think they will always be returned in the same order, not by the code, but by the nature of the 1-Wire bus. That being said I don't think you really want to count on them being returned in any order since if you add/remove sensors everything will be thrown out of whack. Your 5 "if" statements is heading in the right direction, but I would use an array of the addresses and check them in a FOR Loop.

willnue



Molehs

Spent a couple hours searching and trying stuff yesterday and I have been unsuccessful in getting it to respond. All of the 'simple' things I've found so far haven't worked and I'm not motivated enough yet to try the more complex things. I'll keep trying to bring it up but as I've wanted to have a 2nd Arduino and with the 3-5 week delivery time it was better to order now and best case in 3 weeks time I'll have fixed mine and then have 2. Worst case is I can drop the new one directly in and get back to work. But if I were screw around with this for 2 weeks and it's still dead then order, I'd have to wait t hat much longer.

I've not found better prices than form China on ebay for some things. I'd love to order American, but with the price range of this Arduino ranging from $40-$100+ I'd be paying more for less. For $62 delivered I am getting the ATMega 1280, a 128x64GLCD, good sized solderless breadboard, big handful of jumper wires, and a number of other useful bits.

As for the code I'll try and tinker with it, but can't say I'll make much progress until I get the new board. I'm kind of surprised that they don't make an Arduino emulator to test code.

Molehs

OK, new Arduino is here and every thing is hooked up. I started looking at the code again and remember why I didn't try to mess with it while waiting for the new board.

Trying a few things, will check in after testing. Any further advice would be appreciated....

willnue

I thought it was working on the old Arduino? Is it not working now?

willnue

Go Up