Go to advanced search

by pcmanbob
Sun May 19, 2019 11:48 am
Forum: Beginners
Topic: Trying to test LCD character displays using pogo pins - characters are garbled
Replies: 7
Views: 149

Re: Trying to test LCD character displays using pogo pins - characters are garbled

My guess would be that its because you are constantly resetting the display with the set up routine , which is why I suggested you increase the delay at the end of your program to several seconds to allow the display to settle and it will mean you are not resetting the display so often.
by pcmanbob
Sun May 19, 2019 9:55 am
Forum: General discussion
Topic: My Raspberry Pi is broken after only the third time using it.
Replies: 6
Views: 231

Re: My Raspberry Pi is broken after only the third time using it.

I suggest you follow the instructions here https://www.raspberrypi.org/documentati ... /README.md
and download and install an operating system ( raspbian stretch ) on your SD card and try again.
by pcmanbob
Sun May 19, 2019 9:49 am
Forum: Beginners
Topic: Trying to test LCD character displays using pogo pins - characters are garbled
Replies: 7
Views: 149

Re: Trying to test LCD character displays using pogo pins - characters are garbled

Probably because the lcd setup line calls an Initialize routine within the RPLCD software that sets the display up, I would try including the setup line within the while loop and increase the time.sleep to several seconds so each display has time to be setup and display the text before being setup a...
by pcmanbob
Sun May 19, 2019 9:42 am
Forum: Troubleshooting
Topic: Kernel panic error at first startup pi 3 B+
Replies: 6
Views: 140

Re: Kernel panic error at first startup pi 3 B+

I would test your SD cards using H2testw for windows PC or CapacityTester for a Linux PC.

There are other programs for winds if you prefer.

https://www.geckoandfly.com/22803/detec ... -ssd-disk/
by pcmanbob
Sat May 18, 2019 10:44 pm
Forum: Troubleshooting
Topic: Kernel panic error at first startup pi 3 B+
Replies: 6
Views: 140

Re: Kernel panic error at first startup pi 3 B+

Well your link is no good as it asks for you account details.

If you still have problems after trying to flash your SD card again then I suggest you test the SD card with one of the programs you can find on the web for free.
by pcmanbob
Sat May 18, 2019 11:04 am
Forum: Beginners
Topic: RPi Zero W goes Idle after an Execution
Replies: 2
Views: 68

Re: RPi Zero W goes Idle after an Execution

Hi. Have a read through the data sheep for the HC-SR501 PIR and make sure you have it set up properly for retriggering. https://www.mpja.com/download/31227sc.pdf you might also run the code with lots of print statements like this import RPi.GPIO as gpio import picamera import time import smtplib fro...
by pcmanbob
Sat May 18, 2019 10:51 am
Forum: Troubleshooting
Topic: Kernel panic error at first startup pi 3 B+
Replies: 6
Views: 140

Re: Kernel panic error at first startup pi 3 B+

Hi. First question would be were are you getting the SD cards from , could they be fake ? Then what I would do is down load a new copy of the raspbian image from the web site, then I would try using a different SD card reader , especially if you are using a built in one as it may not be fully compat...
by pcmanbob
Sat May 18, 2019 10:46 am
Forum: Python
Topic: First attempt at combining two programs
Replies: 1
Views: 66

Re: First attempt at combining two programs

The code looks fine to me , To explain why you need the 2 logic = 1 lines, if they were not there the first time the code runs you would get an error because they will no have been set, because they are not set/re-set until after the if or else statements execute, so you would be trying to check the...
by pcmanbob
Sat May 18, 2019 10:35 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: How to wire a Raspberry Pi to a Sainsmart 5v Relay Board
Replies: 83
Views: 226385

Re: How to wire a Raspberry Pi to a Sainsmart 5v Relay Board

An excellent collection of useful information but in case anyone is interested it is possible to safely drive the Sainsmart 4-Relay board directly from the RPi without an intermediary circuit. The same probably holds true for the 5-relay board as well but I don't have one to test. The Sainsmart rel...
by pcmanbob
Fri May 17, 2019 11:35 am
Forum: Raspbian
Topic: wheezy distribution gone
Replies: 7
Views: 211

Re: wheezy distribution gone

Hi.

You can find the wheezy images here. https://downloads.raspberrypi.org/raspbian/images/
by pcmanbob
Fri May 17, 2019 11:29 am
Forum: Beginners
Topic: Where can I find reliable wire jumpers?
Replies: 3
Views: 118

Re: Where can I find reliable wire jumpers?

I have found that most dupont female connectors can be made to fit better by just removing the outer plastic cover and then crimping the spring part of the connector a bit more to make them a tighter fit on the pi gpio pins. https://i.imgur.com/WNlMVWB.jpg?1 https://i.imgur.com/cTlWYgK.jpg?1 As for ...
by pcmanbob
Fri May 17, 2019 11:09 am
Forum: Beginners
Topic: Is it possible to have static IP address?
Replies: 11
Views: 211

Re: Is it possible to have static IP address?

There are 2 ways you can have a static IP on your local network for your pi. 1. use your router to set a persistent/reserved IP address for you pi so the router always assigns the same IP to your pi. setup is done on your router if it supports it. 2. set a static IP on the pi its self. To do this yo...
by pcmanbob
Fri May 17, 2019 10:36 am
Forum: Python
Topic: Can Someone Help Me Start My Program With A Button
Replies: 8
Views: 185

Re: Can Someone Help Me Start My Program With A Button

Try this simple example it will help you get started. First you need to connect a switch and an LED to your pi gpio like this https://i.imgur.com/0Z9JJYi.jpg then you can run this code import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) GPIO.setup(21, GPIO.IN, GPIO.PUD...
by pcmanbob
Thu May 16, 2019 8:48 pm
Forum: Automation, sensing and robotics
Topic: Powering Raspberry Pi Zero W and 3 steppers motors
Replies: 2
Views: 77

Re: Powering Raspberry Pi Zero W and 3 steppers motors

Hi. One word of warning. When using a DC-DC buck converter ( LM2576 ) with variable output to power you pi you must make sure you set the output voltage to 5.1V before you connect it to your pi, as these devices are not factory set to any particular voltage. I have used similar DC-DC buck converters...
by pcmanbob
Thu May 16, 2019 8:35 pm
Forum: Troubleshooting
Topic: Can I use 5V to power a display with tm1637 and control it by 3 V
Replies: 6
Views: 127

Re: Can I use 5V to power a display with tm1637 and control it by 3 V

I know that it can use also 3 or 5 V. I don’t know what color it ia. Blue would be very dim with 3 V.. I answered the question you asked " Can I use 5V to power a display with tm1637 and control it by 3 V " but it could only be a generalisation because I don't know which display you are using as yo...
by pcmanbob
Thu May 16, 2019 8:26 pm
Forum: Beginners
Topic: Before I short this out GPIO and Minecraft
Replies: 1
Views: 63

Re: Before I short this out GPIO and Minecraft

Hi. So lets address this first. Further complicating is that I have an iuniker bread board and the numbers don't seem to match. When performing a previous simple led circuit I found that when I send a command to turn on pin 16, it actually comes out on pin 23 on my board. Trying to extrapolate which...
by pcmanbob
Thu May 16, 2019 2:33 pm
Forum: Troubleshooting
Topic: GPIO input is triggered by just touching one pin
Replies: 4
Views: 95

Re: GPIO input is triggered by just touching one pin

So you are using an internal pull up, so by connecting yourself to the gpio pin via a metal object you may be pulling the 3.3v on the pi down far enough to trigger an input. You are just providing the path to ground via the metal object and your body, in the same way a switch would provide a path to...
by pcmanbob
Thu May 16, 2019 2:20 pm
Forum: Graphics, sound and multimedia
Topic: run lcd 2*16 with raspberrypi
Replies: 5
Views: 104

Re: run lcd 2*16 with raspberrypi

thanks but lcd is 16*2 . i added the photo and this is big lcd 2*16 and i use 50K volum for pin 3 https://imgur.com/W8F9WqF https://imgur.com/ZyAUNw6 So is is based on the same HD44780 LCD controller or an equivalent or is it using some other LCD controller ? May be a link to where you got it from ?
by pcmanbob
Thu May 16, 2019 1:22 pm
Forum: Python
Topic: Error to run a Speedtest module on Python
Replies: 5
Views: 95

Re: Error to run a Speedtest module on Python

I'm amazed - tried a dozen or more servers at different times of the day and night and got widely differing results both Ethernet and via WiFi. Shame the io.adafruit data has gone now - I was playing with the graphing as it was that different :lol: results for yesterday covering 24 hours, 4 tests a...
by pcmanbob
Thu May 16, 2019 12:48 pm
Forum: Beginners
Topic: Multiple Ultrasonic Sensors to Raspi
Replies: 6
Views: 124

Re: Multiple Ultrasonic Sensors to Raspi

To connect 4 Ultrasonic HC-SR04 Distance sensors is straight forward , you need to connect 5V and ground to each sensor , Then you need to connect 4 gpio pins one to each sensor trigger pin, and finally you need to connect each of the echo pins to a 4 gpio pins using a potential divider circuit. Som...
by pcmanbob
Thu May 16, 2019 12:42 pm
Forum: Beginners
Topic: Static IP address Raspian Stretch not working
Replies: 4
Views: 81

Re: Static IP address Raspian Stretch not working

Hi. It should be no more difficult than just editing /etc/dhcpcd.conf and un-commenting these lines and adding your own settings # Example static IP configuration: interface eth0 static ip_address=192.168.1.17/24 #static ip6_address=fd51:42f8:caae:d92e::ff/64 static routers=192.168.1.1 static domain...
by pcmanbob
Thu May 16, 2019 12:25 pm
Forum: Graphics, sound and multimedia
Topic: run lcd 2*16 with raspberrypi
Replies: 5
Views: 104

Re: run lcd 2*16 with raspberrypi

First off your contrast pin ( pin 3 on the LCD ) needs wiring to the variable resistor like this. https://i.imgur.com/Yw5cYre.jpg then you need to adjust the variable resistor so you get a display like this https://i.imgur.com/WITfZma.jpg?1 so you can just see the squares were the text will appear, ...
by pcmanbob
Thu May 16, 2019 12:11 pm
Forum: Python
Topic: Error to run a Speedtest module on Python
Replies: 5
Views: 95

Re: Error to run a Speedtest module on Python

Be warned - this is NOT a reliable too l as it depends on the speed of Python. I've had significant differences (with the same remote server) within seconds from a Pi, a slow PC, a fast PC and from the Speediest site. See the creators warning at the bottom :lol: Actually I find it produces results ...
by pcmanbob
Thu May 16, 2019 9:44 am
Forum: Troubleshooting
Topic: Rpi 3B+ doesn't boot ACT LED always off
Replies: 4
Views: 102

Re: Rpi 3B+ doesn't boot ACT LED always off

Hi. Have you tried measuring the voltage on the 3.3v pin to see if it is still present ? that would you tell you instantly if its a problem with the 3.3v failing. Be careful when attempting to measurer the voltage you don't want to short the 3.3v pin to any other pin so I suggest you use 2 dupont ca...
by pcmanbob
Thu May 16, 2019 9:38 am
Forum: Troubleshooting
Topic: GPIO input is triggered by just touching one pin
Replies: 4
Views: 95

Re: GPIO input is triggert by just touching one pin

Hi. That is because your gpio pins are floating so when you connect yourself to the pi you provide either a ground or a positive voltage which triggers your program. I suggest you have a read if this site that explains how to set up a gpio pin so it does not float, using pull-ups or pull-downs. http...

Go to advanced search