Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
temp probe pin outs for usb plug
#1
rob can you please show how to connect probe wires to usb plug thanks
Reply to top
#2
Hi, hope this helps.

[Image: USB_Temps.jpg]
Reply to top
#3
Hey

I was hooking up more temp probes to the power bar and noticed that 2 out of 4 bottom USB ports are conected to 3V3 and 2 are connected to 5V. also on the top of this board the usb port that is right next to the ETH port is also connected to 3V3.

I was looking for a problem as there were only 2 temperatures showing up on the display.
I have noticed at first that the sketch :
DISPLAY void checkExTemp2(), void checkExTemp3() & void checkExTemp4() all have the same code as the void checkExTemp1() so in this case on the display it is always extemp1 and not other three temperatures but I have made corrections to that and the temperatures are now shown but still only 2 out of 4. I need to know why are 3 USB ports powered by 3V3 and the rest 5 ports with 5V.

Right now all it works is the main two temp probes for DS18B20 and one for DHT22 plus 2 extra on the bottom but not the extra 2 that are on the bottom or the extra one on the top.
Reply to top
#4
(02-18-2016, 03:05 AM)sassod Wrote: Hey

I was hooking up more temp probes to the power bar and noticed that 2 out of 4 bottom USB ports are conected to 3V3 and 2 are connected to 5V. also on the top of this board the usb port that is right next to the ETH port is also connected to 3V3.

I was looking for a problem as there were only 2 temperatures showing up on the display.
I have noticed at first that the sketch :
DISPLAY  void checkExTemp2(), void checkExTemp3() & void checkExTemp4() all have the same code as the void checkExTemp1() so in this case on the display it is always extemp1 and not other three temperatures but I have made corrections to that and the temperatures are now shown but still only 2 out of 4. I need to know why are 3 USB ports powered by 3V3 and the rest 5 ports with 5V.

Right now all it works is the main two temp probes for DS18B20 and one for DHT22 plus  2 extra on the bottom but not the extra 2 that are on the bottom or the extra one on the top.

Hi Sassod, when I started I didn't know what the ports would be so I made some 3.3v, the temp sensors should still work though as they are good for 3v-5v. I'm looking at the code and the four functions look ok, I would be interested to know what you had to change to get it working. 

Do you have the power bar sketch set for board version 1? On line 20 you can change the version if its set to the default version 2. This changes pin numbers for 2 of the 4 sensors, maybe that's the problem.
Reply to top
#5
Hey 

no I have the first version of the board so it is set ot 1 as it should be, the code that I had to change was that in each of the void checkTemp 1-4 the  myGLCD.printNumF(exTemp1, 2, 215, 99); was in all the instances

This is the code that I had changed and is working properly now. Maybe the length of my DS18B20 probes is too much ( 3m factory made) and the voltage drop is too high to transport data correctly, have to find shorter probe and test it to see if it works

Code:
void checkExTemp1()
{
 if (dispScreen == 38)
 {
   myGLCD.setFont(GroteskBold24x48);
   myGLCD.setColor(255, 255, 255);
   if ((exTemp1 > 198) && (exTemp1 < 198.1)) myGLCD.print("N/A", 264, 99);
   else if ((exTemp1 > 310.7) && (exTemp1 < 310.8)) myGLCD.print("N/A", 264, 99);
   else if (exTemp1 > 99) myGLCD.printNumF(exTemp1, 1, 210, 99);
   else {myGLCD.setColor(0, 0, 0); myGLCD.fillRect(201, 99, 214, 149); myGLCD.setColor(255, 255, 255); }
 }
}
void checkExTemp2()
{
 if (dispScreen == 38)
 {
   myGLCD.setFont(GroteskBold24x48);
   myGLCD.setColor(255, 255, 255);
   if ((exTemp2 > 198) && (exTemp2 < 198.1)) myGLCD.print("N/A", 264, 199);
   else if ((exTemp2 > 310.7) && (exTemp2 < 310.8)) myGLCD.print("N/A", 264, 199);
   else if (exTemp2 > 99) myGLCD.printNumF(exTemp2, 1, 210, 199);
   else {myGLCD.setColor(0, 0, 0); myGLCD.fillRect(201, 199, 214, 249); myGLCD.setColor(255, 255, 255); myGLCD.printNumF(exTemp2, 2, 215, 199);}
 }
}
void checkExTemp3()
{
 if (dispScreen == 38)
 {
   myGLCD.setFont(GroteskBold24x48);
   myGLCD.setColor(255, 255, 255);
   if ((exTemp3 > 198) && (exTemp3 < 198.1)) myGLCD.print("N/A", 264, 299);
   else if ((exTemp3 > 310.7) && (exTemp3 < 310.8)) myGLCD.print("N/A", 264, 299);
   else if (exTemp3 > 99) myGLCD.printNumF(exTemp3, 1, 210, 299);
   else {myGLCD.setColor(0, 0, 0); myGLCD.fillRect(201, 299, 214, 349); myGLCD.setColor(255, 255, 255); myGLCD.printNumF(exTemp3, 2, 215, 299);}
 }
}
void checkExTemp4()
{
 if (dispScreen == 38)
 {
   myGLCD.setFont(GroteskBold24x48);
   myGLCD.setColor(255, 255, 255);
   if ((exTemp4 > 198) && (exTemp4 < 198.1)) myGLCD.print("N/A", 264, 399);
   else if ((exTemp4 > 310.7) && (exTemp4 < 310.8)) myGLCD.print("N/A", 264, 399);
   else if (exTemp4 > 99) myGLCD.printNumF(exTemp4, 1, 210, 399);
   else {myGLCD.setColor(0, 0, 0); myGLCD.fillRect(201, 399, 214, 449); myGLCD.setColor(255, 255, 255); myGLCD.printNumF(exTemp4, 2, 215, 399);}
 }
}
Reply to top
#6
Oops, I was looking in the mega sketch and couldn't find anything. Is it the 3.3v ports that don't work? If so you can cut the trace at the jack and run 5v to it instead. Also make sure the resistors for each jack is 4.7k.
Reply to top
#7
Ok, so I spent a few hours trying to figure out why I'm not getting a temperature reading on the RT included DS18B20 with cable.  I couldn'r find any necessary reset or install probe function and DID perform several soft/hard resets, although elsewhere your code seems to self refresh the sensors. I followed the above diagram with the assumed color code for your supplied sensor. 

RT DS18B20: Red-5V, Yellow-Data, and  Green-ground. Frustrated, I tried similar probes from my other arduino aquarium controller that had a DIFFERENT  color coding, 

My DS18B20: Red-5V, Blue-Data, and Black-ground. And THEY worked!

Soooo, question is... have I got the color coding for your sensors wires incorrect, or is this just a defective DS18B20?? See pics

Can't seem to attach the pics, forum hangs... happened last night and crashed post.

Oh well, you get the picture...

Thanks 
Steve
Reply to top
#8
Hi Steve On my USB cables the outside wires are RED and black inside are green and white the (White) is usually my data cable.

I have never seen a blue wire inside one yet chances of have a defective DS18B 50/50 I bought a 10 pck and 4 where bad you could of over heated it soldering it and damaged it if you bought it from sainsmart make sure it is water tight before using

as far as cables go use a volt meter that what I did to figure out mine was white
Reply to top
#9
(03-13-2016, 08:26 PM)rott Wrote: Hi Steve On my USB cables the outside wires are RED and black inside are green and white the (White) is usually my data cable.

I have never seen a blue wire inside one yet chances of have a defective DS18B 50/50 I bought a 10 pck and 4 where bad you could of over heated it soldering it and damaged it if you bought it from sainsmart  make sure it is water tight before using

as far as cables go use a volt meter that what I did to figure out mine was white

Thanks rott,

The cable was not a separate USB cable. I saw your post re: not all wired same. This was the one with a cable from an enclosed or so-called water proofed DS18B, which Rob supplied as part of the original kit. Too far away on the cable from the iron to have been heat damaged and I used the bare USB connectors to attach to the RT connector board. The ones that worked and had the blue data wire were from China OTHER than Sainsmart. I've sworn off of them do to lack of any form of reasonable customer support.

I was just wondering if I had the color coding on the RT supplied DS18B20 correct so I could rule that out. You are most probably correct assuming defective as I've had hit or miss with a lot of these Chinese parts/

Thanks
Reply to top
#10
Hi Steve, sorry its not working for you. As far as I know all my probes ships with red, yellow and black, yellow being data, red 5v and black ground. It's likely a defective probe, I'll get you a new one sent out.
Reply to top
#11
I know what it is like I have a drawer with a few extra made up and I have small packet with component level temp probs and matching resistors just incase lot of the ebay stuff work no problems but about 1 or 2% is just junk
Reply to top
#12
(03-14-2016, 09:23 PM)rott Wrote: I know what it is like I have a drawer with a few extra made up and I have small packet with component level temp probs and matching resistors just incase lot of the ebay stuff work no problems but about 1 or 2% is just junk

Well so much for the TWO temp probes I thought I got working. I placed one in the water and it lasted about two seconds. So, I thought I would take a peek inside that so called waterproof tube.  This supposedly new sensor just fell apart. It was like moisture had been trapped for a very long time in it. I don't know if these components are actually tested for water resistance.  I think I just surpassed the 50% failure rate!

Rob, Thanks for the offer on sending out a replacement, but if you haven't yet mailed it, don't. Save the postage. Shipping will probably cost more you more than the part is worth. Just throw it in with the next order.
Reply to top
#13
you can always just buy them off ebay then shoot a bit of silicon inside any opening to make sure it is sealed also sure electronics is a good place some times to get them
Reply to top
#14
That sucks... As rott says maybe a good idea to add silicon.
Reply to top


Possibly Related Threads…
Thread Author Replies Views Last Post
  Pin out feeder Dom59 40 42,354 04-22-2019, 11:51 PM
Last Post: Rob F
  PH probe Irass 16 17,670 03-12-2018, 08:00 PM
Last Post: Rob F
  pin outs of relays Neongt 5 7,761 06-15-2016, 09:35 PM
Last Post: Rob F
  usb wire colors rott 1 3,746 03-07-2016, 04:42 PM
Last Post: Rob F

Forum Jump:

Current time: 04-27-2024, 07:55 AM