Search found 43 matches

by UltraBob
Sun Aug 10, 2014 11:03 am
Forum: General Discussion and Questions
Topic: Reading a temperature value from a TMP36 sensor
Replies: 16
Views: 19084

Re: Reading a temperature value from a TMP36 sensor

Great, that is helpful to know, but can I still obviously don't quite have a handle on it because I still have this stupid question: why on the arduino do I have to calculate with 5 volts. Is it just a matter of the the adc converting the stir ee voltage range based on a different reference voltage?...
by UltraBob
Thu Aug 07, 2014 2:50 pm
Forum: General Discussion and Questions
Topic: Reading a temperature value from a TMP36 sensor
Replies: 16
Views: 19084

Re: Reading a temperature value from a TMP36 sensor

Still back to the formula giving a calculation that doesn't make any sense though unless I'm still confused (it seems like I must need to use 3.3 in the calculation, but I don't understand why). Seems like Vout becomes ADC * 4.7 / 4095.0 which gives a value of 1.12 V from that 976 reading I mentione...
by UltraBob
Thu Aug 07, 2014 12:43 am
Forum: General Discussion and Questions
Topic: SD Card not mounting on computer or on board
Replies: 9
Views: 10175

Re: SD Card not mounting on computer or on board

I wish I'd brought the board in with me so I could experiment with this, but I guess the suggestion is that I could either put in a manual toggle or I could add a little delay before setting the USB mode to hopefully give the sd some time to settle before presenting it to the OS, or have I missed th...
by UltraBob
Thu Aug 07, 2014 12:40 am
Forum: General Discussion and Questions
Topic: Reading a temperature value from a TMP36 sensor
Replies: 16
Views: 19084

Re: Reading a temperature value from a TMP36 sensor

The reason I'm using VIN is because I am also powering a 16x2 LCD display which seems to want more than 3.3V.
by UltraBob
Wed Aug 06, 2014 9:41 pm
Forum: General Discussion and Questions
Topic: Reading a temperature value from a TMP36 sensor
Replies: 16
Views: 19084

Re: Reading a temperature value from a TMP36 sensor

Testing directly on the pins coming off the board, and on the pins on the sensor I get 4.76V. I guess I should NOT be running the sensor off of vin huh?
by UltraBob
Wed Aug 06, 2014 9:23 pm
Forum: General Discussion and Questions
Topic: Reading a temperature value from a TMP36 sensor
Replies: 16
Views: 19084

Re: Reading a temperature value from a TMP36 sensor

Hi Dave, unless I understood incorrectly, you said something different here, and I thought I had found that to be true.
by UltraBob
Wed Aug 06, 2014 2:58 pm
Forum: General Discussion and Questions
Topic: Reading a temperature value from a TMP36 sensor
Replies: 16
Views: 19084

Re: Reading a temperature value from a TMP36 sensor

I just had a sneaking suspicion and changed the math to be 3.3 / 4096 and came up with a measurement of 27.5 which is quite likely to be right. I guess I need to get after it with a multimeter tomorrow and see what voltage the TMP36 sensor is really getting. I've managed to get myself all confused.
by UltraBob
Wed Aug 06, 2014 2:48 pm
Forum: General Discussion and Questions
Topic: Reading a temperature value from a TMP36 sensor
Replies: 16
Views: 19084

Reading a temperature value from a TMP36 sensor

So I've been trying to read the celcius temperature from a TMP36 module. I plugged into X11 because that is supposed to be one of the ADC enabled pins. (Please correct bad terminology, I'm doing this because I'm trying to learn) I started out trying tempPin = Pin(Pin.board.X11,Pin.ANALOG) but then I...
by UltraBob
Wed Aug 06, 2014 2:11 pm
Forum: General Discussion and Questions
Topic: SD Card not mounting on computer or on board
Replies: 9
Views: 10175

Re: SD Card not mounting on computer or on board

Got that working: def copyfile(source, dest, buffer_size=32): """ Copy a file from source to dest. source and dest can either be strings or any object with a read or write method, like StringIO for example. """ if not hasattr(source, 'read'): source = open(source, 'rb') if not hasattr(dest, 'write')...
by UltraBob
Wed Aug 06, 2014 2:06 pm
Forum: General Discussion and Questions
Topic: SD Card not mounting on computer or on board
Replies: 9
Views: 10175

Re: SD Card not mounting on computer or on board

I still don't know what pyb.sync does, but it doesn't sync the two memory cards. I didn't think it would, but it was worth a shot in desperate times. ;) Is there a way in python for me to manipulate files (copy the files from flash to sd card)? I'm having some trouble without shutils available. I tr...