Hello Again Mr. Dennis, Seth here. I have done some small time work on what wiring I have concocted. Here goes:
TMP36: Pin 1 is + Vs and it is connected to P9_34 or GNDA_ADC. Pin 2 is Vout and it is connected to P9_40 or AIN1. and... Pin 3 is GND and it is connected to P9_03 or VDD_3V3. Now...I have been wrong before and I am just listening to the info. from the book. I will do some extra research on this project from the schematic: http://www.analog.com/media/en/technical-documentation/data-sheets/TMP35_36_37.pdf. I got this link from Digi Key. They still sell these TMP36 sensors. Seth P.S. If you get bored, let me know what you think. Oh and I just changed the uEnv.txt file in the /boot directory to enable=BB-AIN1,BB-GNDA_ADC,VDD_3V3 and then I rebooted the machine. I am getting an exact read of the 130 C degrees and 201 F degrees. I think this will better suit your needs if you are choosing to still help me out. Thank you again, sir. On Tuesday, July 11, 2017 at 6:58:24 PM UTC-5, Mala Dies wrote: > > Hello Dennis, > > Yep...I changed the wiring and changed a uEnv.txt file in the /boot > directory. I have the P9_40/AIN1 pin connect now instead of the P9_39/AIN0. > When I stated that I changed a file, I changed the file to enable > BB-ADC1,BB-ADC2 instead of having it enabled at BB-AIN0, BB-AIN1. > > The software is completely different too. I used this set of software to > check the TMP36 just like the older software I used in a post not too long > ago. > > Seth > > P.S. I will work backwards like you are discussing and I will keep trying. > I know I should have some pins enabled with my Cape Universal disabled. I > am probably way off base but this is what I have done so far. Sorry for not > giving every detail. I will wait to hear from you again while attempt to > work some magic. > > On Monday, July 10, 2017 at 9:27:41 PM UTC-5, Dennis Lee Bieber wrote: >> >> On Mon, 10 Jul 2017 16:10:50 -0700 (PDT), Mala Dies >> <fun...@gmail.com> declaimed the following: >> >> > >> >I have another set of software that I picked up along the way, i.e. >> >probably from that book, "Evil Genuis," series from Mr. Rush. Anyway, >> here >> >goes it. Oh but first, I know people are getting tired of seeing the >> same >> >ole, same ole. This does not discourage me from posting. >> > >> >> What is discouraging is the lack of any attempts to analyze/debug >> the >> problem... Posting code samples from books, stating an invalid result, >> and >> that is where the effort seems to end. >> >> >*var b = require('bonescript');* >> > >> >*var inputPin = "P9_40";* >> > >> >*getBeagleTemp();* >> > >> >*function getBeagleTemp() {* >> >* var value = b.analogRead("P9_40");* >> > >> >* var millivolts = value * 1800;* >> >* var x = (millivolts - 500)/10;* >> >* var z = (x * 9/5) - 32;* >> >* setTimeout(getBeagleTemp, 10000);* >> > >> >* console.log("x=" + x + "\tz=" + z);* >> >*}* >> > >> >> >I am getting temperatures in the Fahrenheit of 201 and in Celsius of >> 129. >> >This is not my temp. in the house. >> > >> >> Again, work the results backwards to figure out the numbers >> (again, >> ignore Fahrenheit). >> >> x = 129 >> >> 129 = (mV - 500) / 10 >> 1290 = mV - 500 >> 1790 = mV >> >> {Not important, since it just converts the voltage back to the analogRead >> 0..1 range >> mV = val * 1800 >> 1790 = val * 1800 >> 1790/1800 = val >> 0.9944 = val >> } >> >> Before, the reported temperature was near -50, now it is near >> +130. >> >> -50 is GND (0.0V), +130 is maximum (safe) for BB (1.8V). The >> minor >> differences could be capacitive coupling and cross-talk on the wiring. >> >> My only logical conclusion is that you have changed the wiring >> some, >> and are not properly connected to the TMP36, instead somehow being >> connected to either the GND or the ADC-Voltage source. >> -- >> Wulfraed Dennis Lee Bieber AF6VN >> wlf...@ix.netcom.com HTTP://wlfraed.home.netcom.com/ >> >> -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/9eaae0a7-2c6b-4cb3-9863-d10d2ebfa65e%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.