0

PiOLED Not working at all
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Re: PiOLED Not working at all

by strej941 on Wed Sep 11, 2019 9:42 pm

adafruit_support_carter wrote:Try running this command which will scan the I2C bus for all connected device addresses:
Code: Select all | TOGGLE FULL SIZE
sudo i2cdetect -y 1

Please post another screen shot of that output.


https://gyazo.com/7efbc9649f1ff54c32017d07e3fc80d1

Is there a way to delete the nano ~pi/stats.py and try again?

I'm a bit stuck after copying the huge string of text what to do from there, and think I messed things up a bit.

strej941
 
Posts: 15
Joined: Mon Sep 09, 2019 6:43 pm

Re: PiOLED Not working at all

by aphexx0407 on Wed Sep 11, 2019 10:14 pm

Have you run these two commands already?
sudo apt-get install -y python-smbus
sudo apt-get install -y i2c-tools


Refer to this page https://learn.adafruit.com/circuitpython-on-raspberrypi-linux/installing-circuitpython-on-raspberry-pi#enable-i2c-and-spi-3-5 to Enable I2C and SPI

But before you proceed in there have you done these?
https://learn.adafruit.com/circuitpython-on-raspberrypi-linux/installing-circuitpython-on-raspberry-pi#update-your-pi-and-python-3-4
Update Your Pi and Python
Run the standard updates:
    sudo apt-get update
    sudo apt-get upgrade
and
    sudo pip3 install --upgrade setuptools

If above doesn't work try
    sudo apt-get install python3-pip

aphexx0407
 
Posts: 30
Joined: Tue Sep 10, 2019 1:41 am

Re: PiOLED Not working at all

by strej941 on Wed Sep 11, 2019 10:17 pm

aphexx0407 wrote:Have you run these two commands already?
sudo apt-get install -y python-smbus
sudo apt-get install -y i2c-tools


Refer to this page https://learn.adafruit.com/circuitpython-on-raspberrypi-linux/installing-circuitpython-on-raspberry-pi#enable-i2c-and-spi-3-5 to Enable I2C and SPI

But before you proceed in there have you done these?
https://learn.adafruit.com/circuitpython-on-raspberrypi-linux/installing-circuitpython-on-raspberry-pi#update-your-pi-and-python-3-4
Update Your Pi and Python
Run the standard updates:
    sudo apt-get update
    sudo apt-get upgrade
and
    sudo pip3 install --upgrade setuptools

If above doesn't work try
    sudo apt-get install python3-pip


Yes I did all those and the "test" at the very end of the first link after installing Python. Test matched the website.

strej941
 
Posts: 15
Joined: Mon Sep 09, 2019 6:43 pm

Re: PiOLED Not working at all

by aphexx0407 on Wed Sep 11, 2019 10:42 pm

Then try to do this step after
sudo apt-get install -y python-smbus
sudo apt-get install -y i2c-tools
    Refer to this page https://learn.adafruit.com/circuitpytho ... nd-spi-3-5 to Enable I2C and SPI


    After running the CircuitPython Installation guide you can then proceed here https://learn.adafruit.com/pi-hole-ad-blocker-with-pi-zero-w?view=all#install-circuitpython-libraries-6-10 and go through the rest of the process

    aphexx0407
     
    Posts: 30
    Joined: Tue Sep 10, 2019 1:41 am

    Re: PiOLED Not working at all

    by aphexx0407 on Thu Sep 12, 2019 12:19 am

    Any update? I had to re-do everything on my Pi from scratch since I am having issues with the PiOLED. I have everything up and running again.

    aphexx0407
     
    Posts: 30
    Joined: Tue Sep 10, 2019 1:41 am

    Re: PiOLED Not working at all

    by strej941 on Thu Sep 12, 2019 8:13 am

    I did all the steps you mentioned, still no luck. The adblocker seems to work ok, however doesn't work for my chromecast, FireSticks or "Network" apps like HGTV, Paramount Network etc, which is kinda the whole reason I built this :(

    strej941
     
    Posts: 15
    Joined: Mon Sep 09, 2019 6:43 pm

    Re: PiOLED Not working at all

    by aphexx0407 on Thu Sep 12, 2019 8:52 am

    Did you set your router's Internet setting Primary DNS to your Pi's IP address?

    Did you also set your set your Pi's IP address to static (or reserved IP) so it will always have the same IP assigned all the time from your router's setting?

    If you did not set your Pi to have a static or reserved IP from your router's end it is possible that your router may designate a different IP next time it connects which will make your Pi's Adblock capabilities inoperable.

    What I did was set the Internet's Primary DNS setting to my Pi's IP address and set the Secondary DNS to OpenDNS IP, or you can also use Googles DNS of 8.8.8.8

    How about the PiOLED, is it working already?

    aphexx0407
     
    Posts: 30
    Joined: Tue Sep 10, 2019 1:41 am

    Please be positive and constructive with your questions and comments.