Go to advanced search

by ghostrider513
Mon Jul 02, 2018 8:16 pm
Forum: Beginners
Topic: Can't get Thumb Drive to work, can I save data to my PC instead?
Replies: 14
Views: 455

Re: Can't get Thumb Drive to work, can I save data to my PC instead?

I am probably wrong, but I don't see you writing your data to a file. (In languages I'm familiar with on *nix, "print" goes to stdout, which is normally the terminal session you're running the process from.) Are you redirecting stdout to a file? Or--possibly something I missed--are you opening a fi...
by ghostrider513
Mon Jul 02, 2018 8:12 pm
Forum: Beginners
Topic: Can't get Thumb Drive to work, can I save data to my PC instead?
Replies: 14
Views: 455

Re: Can't get Thumb Drive to work, can I save data to my PC instead?

But, I can create a file on the drive. It installed automatically and opened a window for it. It never did that before. Ok then, it's working as it should. I mounted the drive and now can see the config file: Configuration file for the usbmount package, which mounts removable # storage devices when...
by ghostrider513
Mon Jul 02, 2018 8:05 pm
Forum: Beginners
Topic: Can't get Thumb Drive to work, can I save data to my PC instead?
Replies: 14
Views: 455

Re: Can't get Thumb Drive to work, can I save data to my PC instead?

DirkS wrote:
Mon Jul 02, 2018 7:57 pm
ghostrider513 wrote: I get a bash error.

[email protected]:~ $ /etc/usbmount/usbmount.conf
bash: /etc/usbmount/usbmount.conf: No such file or directory
That's not a program, it's a configuration file. Use an editor or text viewer to open it
It's not there. But I can see and access my drive
by ghostrider513
Mon Jul 02, 2018 7:49 pm
Forum: Beginners
Topic: Can't get Thumb Drive to work, can I save data to my PC instead?
Replies: 14
Views: 455

Re: Can't get Thumb Drive to work, can I save data to my PC instead?

I wiped the drive just now, reformatted in FAT32 (before was exFAT). Now to figure out if it's working. Yep, it won't mount an exFAT so FAT16 or FAT32 work fine. If you look at this file: /etc/usbmount/usbmount.conf it will give you some particulars on what file formats and mount locations Raspian ...
by ghostrider513
Mon Jul 02, 2018 1:20 pm
Forum: Beginners
Topic: Can't get Thumb Drive to work, can I save data to my PC instead?
Replies: 14
Views: 455

Re: Can't get Thumb Drive to work, can I save data to my PC instead?

I am probably wrong, but I don't see you writing your data to a file. (In languages I'm familiar with on *nix, "print" goes to stdout, which is normally the terminal session you're running the process from.) Are you redirecting stdout to a file? Or--possibly something I missed--are you opening a fi...
by ghostrider513
Mon Jul 02, 2018 1:13 pm
Forum: Beginners
Topic: Can't get Thumb Drive to work, can I save data to my PC instead?
Replies: 14
Views: 455

Re: Can't get Thumb Drive to work, can I save data to my PC instead?

Have you installed usbmount? sudo apt-get install usbmount Next question: what file system is your thumb driver formatted in? Cheers. I wiped the drive just now, reformatted in FAT32 (before was exFAT). Now to figure out if it's working. Thank you. Stay tuned. As soon as I figure out if it's workin...
by ghostrider513
Mon Jul 02, 2018 1:54 am
Forum: Beginners
Topic: Can't get Thumb Drive to work, can I save data to my PC instead?
Replies: 14
Views: 455

Can't get Thumb Drive to work, can I save data to my PC instead?

I can't get my RPi 3B+ to see and mount my thumb drive. I've had enough. Can I just save the data from the SHT31-D directly to my PC? And how do I get the time and date to show up with the data? I have Win 10. I need to save it as an Excel CSV file so I can upload it to my database on my website. Th...
by ghostrider513
Sat Jun 30, 2018 3:14 am
Forum: General discussion
Topic: Anyone make a Thermal camera
Replies: 3
Views: 1774

Re: Anyone make a Thermal camera

I think so too. CAT makes an Android phone with FLIR technology in it. Just seems real pricy for a souped up camera with low resolution. FLIR has everyone over a barrel though. We're at their mercy.
by ghostrider513
Thu Jun 28, 2018 10:02 pm
Forum: Python
Topic: Help writing a Python Code for Non Coder
Replies: 7
Views: 483

Re: Help writing a Python Code for Non Coder

DougieLawson wrote:
Thu Jun 28, 2018 8:02 am
It's got a bug in it - change " data[" to " shtdata[" everywhere and the humidity stuff should start working.

I don't have an SHT31 sensor so I can't test it.
Humidity is working now. Got it. Thanks for that follow up.
by ghostrider513
Thu Jun 28, 2018 4:20 am
Forum: Python
Topic: How do I connect to my MySQL on my website DB?
Replies: 3
Views: 291

How do I connect to my MySQL on my website DB?

I have a sensor that is printing data. I need to have that data sent to my database on my website. None of the tutorials work. How do I connect my RPI to my Dbase? I am not a programmer and have very little knowledge of coding in python. It would be great if someone code write the code, tell me wher...
by ghostrider513
Thu Jun 28, 2018 3:30 am
Forum: Beginners
Topic: How to save data to usb in Raspberry Pi
Replies: 3
Views: 277

Re: How to save data to usb in Raspberry Pi

You've created the usbdrv directory in your home directory, have you actually mounted the usb drive there? If you are relying on the usb automounter then usually it gets mounted to /media/pi/ name_of_disk BTW, I think you need to prefix the address of the image with http:// otherwise the forum will...
by ghostrider513
Thu Jun 28, 2018 3:07 am
Forum: Python
Topic: Help writing a Python Code for Non Coder
Replies: 7
Views: 483

Re: Help writing a Python Code for Non Coder

Try this program import smbus import time bus = smbus.SMBus(1) while True: bus.write_i2c_block_data(0x44, 0x2C, [0x06]) time.sleep(0.5) shtdata = bus.read_i2c_block_data(0x44, 0x00, 6) temp = shtdata[0] * 256 + shtdata[1] cTemp = -45 + (175 * temp / 65535.0) humidity = 100 * (data[3] * 256 + data[4...
by ghostrider513
Wed Jun 27, 2018 10:27 pm
Forum: Python
Topic: Help writing a Python Code for Non Coder
Replies: 7
Views: 483

Re: Help writing a Python Code for Non Coder

You DO NOT need sudo for I2C with Jessie or Stretch. You need a main loop while True: # do stuff continually bus.write_i2c_block_data(0x44,0x??,0x??) result = bus.read_i2c_block_data(0x44,0x??,4) # ",4" is the length print ('stuff you've read:', str(result)) After bus.write_i2c_block_data() call yo...
by ghostrider513
Wed Jun 27, 2018 10:26 pm
Forum: Python
Topic: Help writing a Python Code for Non Coder
Replies: 7
Views: 483

Re: Help writing a Python Code for Non Coder

You DO NOT need sudo for I2C with Jessie or Stretch. You need a main loop while True: # do stuff continually bus.write_i2c_block_data(0x44,0x??,0x??) result = bus.read_i2c_block_data(0x44,0x??,4) # ",4" is the length print ('stuff you've read:', str(result)) After bus.write_i2c_block_data() call yo...
by ghostrider513
Wed Jun 27, 2018 10:05 pm
Forum: Python
Topic: Help writing a Python Code for Non Coder
Replies: 7
Views: 483

Help writing a Python Code for Non Coder

Short version. I got the RPI to build a simple research data logger that will upload data to my dbase on my website. I have many scientists that will review my data and make conclusions. Problem is, I suck at coding in any language - lol Well it's true. I have after several months, finally got my RP...
by ghostrider513
Wed Jun 27, 2018 9:43 pm
Forum: Beginners
Topic: How to save data to usb in Raspberry Pi
Replies: 3
Views: 277

How to save data to usb in Raspberry Pi

I have a RPI 3B+ and the SHT31D sensor connected. I have a directory that I created for my thumb drive called usbdrv . I want to do two things: set the sensor file to repeat the datalogging every 5 seconds and save that data to a file in the usb directory. The directory file in my drive is called da...
by ghostrider513
Wed Jun 27, 2018 9:34 pm
Forum: General discussion
Topic: I need to add sensors for a research project
Replies: 3
Views: 385

Re: I need to add sensors for a research project

Sounds like you are going "Ghostbusting" Not Ghostbusting. But I am doing some para research. http://www.parapsych.us is my website if you're curious. I'm focusing on real science, not the crap you see on TV. To do my research, which will be scrutinized heavily once published, I have to collect qua...
by ghostrider513
Sun Jun 24, 2018 5:18 pm
Forum: Graphics, sound and multimedia
Topic: AM/FM tuner suitable for Pi?
Replies: 17
Views: 10950

Re: AM/FM tuner suitable for Pi?

Not to butt in, I'm actually looking to add an AM radio receiver so I can monitor static electricity discharge, which would upset the sound on AM radios . . . There exist purpose built lightning detectors. This one claims to have some logic to differentiate between lightning and man-made static dis...
by ghostrider513
Sun Jun 24, 2018 5:15 pm
Forum: Graphics, sound and multimedia
Topic: AM/FM tuner suitable for Pi?
Replies: 17
Views: 10950

Re: AM/FM tuner suitable for Pi?

Aside from the good software radio discussion... Over the last year I've been working (teaching myself) to design PCBs in Eagle CAD...anyways, I've just submitted a board design to oshpark utilizing the si4731 am/fm (with RDS) tuner. The board also includes a tpa2016d2 class D amplifier. Anyway, I ...
by ghostrider513
Sun Jun 24, 2018 5:14 pm
Forum: Graphics, sound and multimedia
Topic: AM/FM tuner suitable for Pi?
Replies: 17
Views: 10950

Re: AM/FM tuner suitable for Pi?

That chip could be made to work I believe. However...... The reason I believe that you don't see any AM radio in computer equipment (USB sticks, Internal cards etc), is that AM circuits can pick up a lot of noise maybe to the point of being unusable unless heavily shielded and/or kept well away fro...
by ghostrider513
Sun Jun 24, 2018 5:09 pm
Forum: Graphics, sound and multimedia
Topic: AM/FM tuner suitable for Pi?
Replies: 17
Views: 10950

Re: AM/FM tuner suitable for Pi?

a "software defined radio", (SDR) normally looks like an USB stick, and contains a radio, that is tuneable in software, and has RF decoding done in software, so it can do AM, FM and a lot of other demodulation methods..... https://en.wikipedia.org/wiki/Software-defined_radio http://daktologistindus...
by ghostrider513
Sun Jun 24, 2018 5:08 pm
Forum: Automation, sensing and robotics
Topic: Novice needs help with Relative Humidity Sensors
Replies: 7
Views: 736

Re: Novice needs help with Relative Humidity Sensors

DHT22 has two sensors in it, the capacitive humidity sensor. This is 0 to 100 % relative humidity, 5% accuracy. A thermistor for temperature -45C to 125C 0.5Caccuracy. Polling max every 2 seconds. And a little chip to give you the readings easily. That's what I have written in my book. A search for...
by ghostrider513
Sun Jun 24, 2018 5:01 pm
Forum: HATs and other add-ons
Topic: Please build a better Relative Humidity Sensor
Replies: 7
Views: 2939

Re: Please build a better Relative Humidity Sensor

I have never compared DHT11 or DHT22 to a calibrated reference but am surprised you are getting ±30% discrepancies. The datasheets claim ±2% on temperature and ±5% for relative humidity and I don't see a lot of posts from people using them saying they are 'worse than useless'. When I used them they...
by ghostrider513
Sun Jun 24, 2018 4:36 pm
Forum: HATs and other add-ons
Topic: Please build a better Relative Humidity Sensor
Replies: 7
Views: 2939

Re: Please build a better Relative Humidity Sensor

I will recommend looking into honeywell temp humidity sensor. something like HIH6130 https://store.ncd.io/product/hih6130-humidity-and-temperature-sensor-%C2%B14-rh-%C2%B11-0c-i2c-mini-module/ the temp/humidity reading are extremely accurate and they are temp compensated. These sensors are i2c base...
by ghostrider513
Sun Jun 24, 2018 4:36 pm
Forum: HATs and other add-ons
Topic: Please build a better Relative Humidity Sensor
Replies: 7
Views: 2939

Re: Please build a better Relative Humidity Sensor

alphanumeric wrote:
Mon Jun 04, 2018 2:59 pm
I switched to a BME680 on my portable weather clock. The only thing I'm using on the Sense Hat now is the LED matrix.
I bought the SHT31D and it's working great. It has the I2C and works better than the DHT's. Thanks

Go to advanced search