Go to advanced search

by Nathan.Rivard
Fri Dec 13, 2019 4:14 pm
Forum: Troubleshooting
Topic: Sudo instructions to insert a directory within /home
Replies: 13
Views: 251

Sudo instructions to insert a directory within /home

I am attempting to put a custom made directory into the /home directory, but I do not have the permissions to do so. Is there a way to change settings on the Pi to allow me to write whatever I would like without using sudo?
by Nathan.Rivard
Tue Nov 19, 2019 3:56 pm
Forum: Advanced users
Topic: VNC Viewer Permanent Address
Replies: 3
Views: 120

VNC Viewer Permanent Address

I have a handful of units that I move around and unplug but what I hate is that when I unplug them they occasionally change their connectivity address. I would like to find a way to manually set the address that I connect to so that I can have one address for each device and simplify my units. Any t...
by Nathan.Rivard
Thu Nov 07, 2019 4:18 pm
Forum: Troubleshooting
Topic: Pandas inserting random columns
Replies: 1
Views: 69

Pandas inserting random columns

So I am using pandas to calibrate a probe I have. I am putting the values of certain voltages and their corresponding value in a .csv file. For this to work I am using DF.iloc to index my values within my python code. My issue is that after a proper calibration, it works fine, the issue is that for ...
by Nathan.Rivard
Wed Nov 06, 2019 3:28 pm
Forum: Troubleshooting
Topic: Pandas unable to be used in Mu
Replies: 2
Views: 383

Pandas unable to be used in Mu

So I have created a program that uses pandas in pycharm and I have brought it over to my Pi but when executing the program i get that error that there is in fact no module named pandas. I have used these guides to attempt to install pandas on my device but I keep getting the same error. Any tips? ht...
by Nathan.Rivard
Fri Oct 18, 2019 4:19 pm
Forum: Troubleshooting
Topic: Multi-Attempt Boot Error
Replies: 2
Views: 131

Re: Multi-Attempt Boot Error

Yes, I already understand the lack of any GUI would not allow me to run Mu, I just wanted to check if it was working. I have already checked that thread out and attempted to do some troubleshooting, but to no avail. I have also gotten an error that I have yet to see anywhere other than myself, which...
by Nathan.Rivard
Fri Oct 18, 2019 3:16 pm
Forum: Troubleshooting
Topic: Multi-Attempt Boot Error
Replies: 2
Views: 131

Multi-Attempt Boot Error

I am having issues with the initial boot of the Raspberry Pi Zero W. I have used multiple SD cards, Rasbian Buster Lite, Raspbian Buster Full, Noobs, and Noobs Lite. Nothing seems to be working. I get freezes that never unfreeze when attempting any of these. The only one that has been able to boot w...
by Nathan.Rivard
Mon Oct 14, 2019 7:48 pm
Forum: Troubleshooting
Topic: MicroSD Card having multiple errors
Replies: 1
Views: 107

MicroSD Card having multiple errors

I just picked up an 8GB MicroSD Card from AdaFruit today. When I plugged it into a friend's laptop, it seemed that the single SD card was four different, memory storage devices at once. It showed up as 4 memory devices that added up to 8 GB. So I brushed this off and downloaded Raspbain Lite from No...
by Nathan.Rivard
Thu Oct 10, 2019 6:10 pm
Forum: Troubleshooting
Topic: Running .py file from boot using rc.local
Replies: 19
Views: 563

Re: Running .py file from boot using rc.local

Where, precisely , in your filesystem are you expecting to find the output file? "Yes" isn't a sensible answer... Hint: if you are looking in some subdirectory of /home/pi/ you are probably looking in the wrong place... See the recent suggestion about 'starting simple.' I was replying as in like ye...
by Nathan.Rivard
Thu Oct 10, 2019 4:54 pm
Forum: Troubleshooting
Topic: Running .py file from boot using rc.local
Replies: 19
Views: 563

Re: Running .py file from boot using rc.local

I check the .csv file that the code writes an output to and there is no update in the information on it. Where, precisely, in your filesystem are you expecting to find the output file ph.csv ? Yes, that is where the program writes to after acquiring data and it should be updating automatically afte...
by Nathan.Rivard
Thu Oct 10, 2019 4:24 pm
Forum: Troubleshooting
Topic: Running .py file from boot using rc.local
Replies: 19
Views: 563

Re: Running .py file from boot using rc.local

There is still no startup of the program upon boot How do you know that? And perhaps share copies of your modified versions of /etc/rc.local and /home/pi/Desktop/pH_Files_and_Data/DFRobot_PH_Read.py I check the .csv file that the code writes an output to and there is no update in the information on...
by Nathan.Rivard
Thu Oct 10, 2019 3:57 pm
Forum: Troubleshooting
Topic: Running .py file from boot using rc.local
Replies: 19
Views: 563

Re: Running .py file from boot using rc.local

hippy wrote:
Wed Oct 09, 2019 8:18 pm

Code: Select all

sudo python /home/pi/Desktop/pH_Files_and_Data/DFRobot_PH_Read.py &
Try -

Code: Select all

/usr/bin/python2 /home/pi/Desktop/pH_Files_and_Data/DFRobot_PH_Read.py &
Or perhaps "python3".
There is still no startup of the program upon boot
by Nathan.Rivard
Thu Oct 10, 2019 3:11 pm
Forum: Troubleshooting
Topic: Random Crashing with no Discernable Reason
Replies: 7
Views: 237

Re: Random Crashing with no Discernable Reason

Doesn't sound like your program then. Do you have any loose connections? What temperature is your Pi reaching? What happens when it crashes? Are you running the latest Raspbian Buster fully updated? I am running the latest version of Raspbian as far as I know, should I go ahead and update and upgra...
by Nathan.Rivard
Wed Oct 09, 2019 8:41 pm
Forum: Automation, sensing and robotics
Topic: pH Sensor with Temperature Sensor
Replies: 1
Views: 632

pH Sensor with Temperature Sensor

So I have a working pH Sensor that is able to read pH and write that value to another text file. What I am doing now is converting the voltage reading that deciphers the pH into an Electrical Conductivity Reading using temperature compensation. For this to work I need to be able to read the temperat...
by Nathan.Rivard
Wed Oct 09, 2019 7:47 pm
Forum: Troubleshooting
Topic: Random Crashing with no Discernable Reason
Replies: 7
Views: 237

Re: Random Crashing with no Discernable Reason

rpiMike wrote:
Wed Oct 09, 2019 6:18 pm
Do you get an error when it crashes? If so what error?
I was actually just writing a program on it, nothing running, and it crashed again
by Nathan.Rivard
Wed Oct 09, 2019 6:28 pm
Forum: Troubleshooting
Topic: Running .py file from boot using rc.local
Replies: 19
Views: 563

Re: Running .py file from boot using rc.local

epoch1970 wrote:
Wed Oct 09, 2019 6:10 pm
As I said. Remove sudo. It is an interactive command and cannot run from rc.local.
I removed sudo and did a reboot and it successfully rebooted but the program did not begin
by Nathan.Rivard
Wed Oct 09, 2019 6:09 pm
Forum: Troubleshooting
Topic: Random Crashing with no Discernable Reason
Replies: 7
Views: 237

Re: Random Crashing with no Discernable Reason

import smbus bus = smbus.SMBus() #bus=smbus.SMBus(0) import sys sys.path.append('../') #/home/pi/Desktop/pH_Files_and_Data/DFRobot_PH_Read.py address=0x48 import time ADS1115_REG_CONFIG_PGA_6_144V = 0x00 # 6.144V range = Gain 2/3 ADS1115_REG_CONFIG_PGA_4_096V = 0x02 # 4.096V range = Gain 1 ADS1115_...
by Nathan.Rivard
Wed Oct 09, 2019 6:08 pm
Forum: Troubleshooting
Topic: Running .py file from boot using rc.local
Replies: 19
Views: 563

Re: Running .py file from boot using rc.local

Here is the python script import smbus bus = smbus.SMBus() #bus=smbus.SMBus(0) import sys sys.path.append('../') #/home/pi/Desktop/pH_Files_and_Data/DFRobot_PH_Read.py address=0x48 import time ADS1115_REG_CONFIG_PGA_6_144V = 0x00 # 6.144V range = Gain 2/3 ADS1115_REG_CONFIG_PGA_4_096V = 0x02 # 4.096...
by Nathan.Rivard
Wed Oct 09, 2019 4:35 pm
Forum: Troubleshooting
Topic: Running .py file from boot using rc.local
Replies: 19
Views: 563

Running .py file from boot using rc.local

I used the method of starting a program from boot used on https://www.dexterindustries.com/howto/ ... t-startup/, but afterward nothing occurs. Has anyone else ran into the same issues?
by Nathan.Rivard
Wed Oct 09, 2019 4:12 pm
Forum: Troubleshooting
Topic: Random Crashing with no Discernable Reason
Replies: 7
Views: 237

Random Crashing with no Discernable Reason

I have a 3B+ that has multiple pin connections and I am attempting it to run a python file 24 hours a day 5 days a week. My issue is that after about 8 hours of logging data and writing that data onto a .csv file, the thing always crashes. The longest I have had without a crash was 10 hours and the ...
by Nathan.Rivard
Tue Oct 08, 2019 8:00 pm
Forum: Troubleshooting
Topic: Raspberry Pi 3B+ Unable to sync to correct time
Replies: 17
Views: 848

Re: Raspberry Pi 3B+ Unable to sync to correct time

What happens if you try running this from command line ? sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z" does it set the correct time and date for you ? and does the pi then keep the correct time and date ? Well that worked perfectly thank you so much I...
by Nathan.Rivard
Tue Oct 08, 2019 4:45 pm
Forum: Troubleshooting
Topic: Raspberry Pi 3B+ Unable to sync to correct time
Replies: 17
Views: 848

Re: Raspberry Pi 3B+ Unable to sync to correct time

What happens if you try running this from command line ? sudo date -s "$(wget -qSO- --max-redirect=0 google.com 2>&1 | grep Date: | cut -d' ' -f5-8)Z" does it set the correct time and date for you ? and does the pi then keep the correct time and date ? Well that worked perfectly thank you so much
by Nathan.Rivard
Tue Oct 08, 2019 2:38 pm
Forum: Troubleshooting
Topic: Raspberry Pi 3B+ Unable to sync to correct time
Replies: 17
Views: 848

Re: Raspberry Pi 3B+ Unable to sync to correct time

[/code]ime=1570480122 user_id=152029] It looks like a DNS problem. The output from timedatectl shows not synced. No return from the google.com ping. All symptoms of DNS not working correctly. You might post the last 15 or so lines of /etc/dhcpcd.conf if you are using a static IP. If you are using d...
by Nathan.Rivard
Tue Oct 08, 2019 1:17 pm
Forum: Automation, sensing and robotics
Topic: Looking for a relatively low-cost electrical conductivity sensor that gives the signal in digital output
Replies: 5
Views: 517

Re: Looking for a relatively low-cost electrical conductivity sensor that gives the signal in digital output

You need to give a bit more info to get some suggestions. What type of material are you trying to measure; liquid, solid? What range of conductivity are you trying to measure? What accuracy are you trying to achieve? Conductivity is normally measured by sensing the current flow across a known geome...
by Nathan.Rivard
Mon Oct 07, 2019 6:34 pm
Forum: Automation, sensing and robotics
Topic: Looking for a relatively low-cost electrical conductivity sensor that gives the signal in digital output
Replies: 5
Views: 517

Looking for a relatively low-cost electrical conductivity sensor that gives the signal in digital output

Just as the title says. I am looking for a low cost electrical conductivity sensor that gives the output in a digital signal, but if that is impossible I can make do with an analog output. I have looked around and not found much in terms of affordability and would just like a little assistance.
by Nathan.Rivard
Mon Oct 07, 2019 4:03 pm
Forum: Troubleshooting
Topic: Raspberry Pi 3B+ Unable to sync to correct time
Replies: 17
Views: 848

Re: Raspberry Pi 3B+ Unable to sync to correct time

Andyroo wrote:
Thu Oct 03, 2019 8:54 pm
Does your Pi have internet connection correctly set up?
What happens if you

Code: Select all

ping 8.8.8.8
ping google.com
When I do that I get

Code: Select all

PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
102 packets transmitted, 0 received, 100% packet loss, time 124ms
The google doesn't really do much for a while

Go to advanced search