Go to advanced search

by pcmanbob
Tue Jun 19, 2018 2:04 pm
Forum: Beginners
Topic: Missing menu and icons
Replies: 1
Views: 56

Re: Missing menu and icons

Hi. From the zero detail you have given us about your problem, it sounds like you have suffered some corruption of your SD card, this is often caused by not shutting the pi down correctly and just switching the power off. you should shut it down using the shutdown button you will find by clicking on...
by pcmanbob
Tue Jun 19, 2018 1:51 pm
Forum: Beginners
Topic: Rasbian Stretch Lite headless setup (SSH)
Replies: 1
Views: 32

Re: Rasbian Stretch Lite headless setup (SSH)

Hi. I use the ssh file to enablee SSH on all my pi builds using raspbian stretch lite so I know it works. possibility you typed shh or hss or some other incorrect combination. if you put the SD card back in to your pc and look for the file you created, if the file name is wrong it will still be ther...
by pcmanbob
Tue Jun 19, 2018 1:45 pm
Forum: Troubleshooting
Topic: MCP3008 returning zeros w/ Gas Sensors
Replies: 2
Views: 35

Re: MCP3008 returning zeros w/ Gas Sensors

Hi. You say the MCP3008 is connected to 3.3v is that for the ref voltage as well ? because if your sensors are outputting voltages up to 5v then you will get max readings all the time once the input exceeds 3.3v. you have not posted any details of your connections between the pi and the MCP3008 or a...
by pcmanbob
Tue Jun 19, 2018 10:48 am
Forum: Other projects
Topic: Dial-a-Joke on CB radio
Replies: 1
Views: 54

Re: Dail-a-Joke on CB radio

Hi. The pi does not have any audio inputs so you will require extra hardware for that, the pi audio output is probably not suitable for direct connection to the MIC circuit of your CB, you will need to match the audio output on the pi to the input requirements of the CB / match the output of your mi...
by pcmanbob
Tue Jun 19, 2018 10:11 am
Forum: General discussion
Topic: setting static ip for Rpi
Replies: 16
Views: 427

Re: setting static ip for Rpi

So you have not said which version of raspbian you are using, but your /etc/network/interfaces file should look like this but if its stretch it should look like this # interfaces(5) file used by ifup(8) and ifdown(8) # Please note that this file is written to be used with dhcpcd # For static IP, con...
by pcmanbob
Mon Jun 18, 2018 4:33 pm
Forum: Beginners
Topic: Wiring a Switch to the Pi
Replies: 4
Views: 160

Re: Wiring a Switch to the Pi

So to detect when your switch is on in one of 2 possible positions you need to use 2 gpio inputs. So you would wire it like this if using external pull down resistors and an external gpio protection resistor. https://i.imgur.com/lPkTSze.jpg you could then read its position using this simple code. im...
by pcmanbob
Mon Jun 18, 2018 2:33 pm
Forum: Troubleshooting
Topic: Reading 4 Analog ultrasonic sensors with MCP 3008
Replies: 4
Views: 82

Re: Reading 4 Analog ultrasonic sensors with MCP 3008

So assuming you have the MCP3008 connected correctly for ref. VDD (Pin 16) wire this to 3.3V VREF (Pin 15) wire this to 3.3V AGND (Pin 14) wire this to ground CLK (Pin 13) wire this to GPIO11 (Pin 23/SCLK) DOUT (Pin 12) wire this to GPIO9 (Pin 21/MISO) DIN (Pin 11) wire this to GPIO10 (Pin 19/MOSI) ...
by pcmanbob
Mon Jun 18, 2018 2:11 pm
Forum: Advanced users
Topic: Pi Desktop box don't work without HDMI
Replies: 7
Views: 213

Re: Pi Desktop box don't work without HDMI

Seeing as this is a desktop based pi may be you should try using the raspbian stretch with desktop as your base image. you could also enable ssh via raspi-config and then before installing any thing else shutdown the pi disconnect the HDMI and try booting it then, if it boots ok you can ssh in and s...
by pcmanbob
Mon Jun 18, 2018 10:25 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: GPIO connector to feed power?
Replies: 4
Views: 119

Re: GPIO connector to feed power?

You can power your pi via the 5v and ground pins on the GPIO header, I have dont it this way myself. But be aware you are bypassing the built in protection that is present when you power it via the micro usb port, so any errors in the connection or supply voltage will probably mean instant death for...
by pcmanbob
Mon Jun 18, 2018 10:10 am
Forum: Beginners
Topic: Time keeping and accuracy
Replies: 2
Views: 99

Re: Time keeping and accuracy

Hi.

If your pi is connected to the internet it will periodically sync its time to the on line time servers, I have several pi's running 24/7 and they keep perfect time.
by pcmanbob
Mon Jun 18, 2018 9:51 am
Forum: General discussion
Topic: setting static ip for Rpi
Replies: 16
Views: 427

Re: setting static ip for Rpi

although I might just go back to a dynamic ip anyway. Would you know the steps to return to a dynamic ip? Going back to DHCP assigned IP addressing is simple all you need to do is edit dhcpcd.conf and comment out the relevant static IP set up lines. So at the command line or in a terminal window en...
by pcmanbob
Mon Jun 18, 2018 9:35 am
Forum: Troubleshooting
Topic: Reading 4 Analog ultrasonic sensors with MCP 3008
Replies: 4
Views: 82

Re: Analog sensor with MCP 3008 output 0

Please edit your post and add code tags, as it stands your code is missing ail its indentation and so it un testable by anyone.

Add [code] at the top

code goes here

and [/code] at the bottom.
by pcmanbob
Sat Jun 16, 2018 2:18 pm
Forum: Troubleshooting
Topic: Servo Motor Control with buttons (they somehow break every time)
Replies: 1
Views: 60

Re: Servo Motor Control with buttons (they somehow break every time)

Hi. Looking at your posted code you start both servos at a duty cycle of 2.5, p = GPIO.PWM(m1, 50) p.start(2.5) p2 = GPIO.PWM(m2, 50) p2.start(2.5) but when you press the buttons you change the duty cycle to 2.5 and just loop round 24 time changing the duty cycle to 2.5, while x <24: p.ChangeDutyCyc...
by pcmanbob
Sat Jun 16, 2018 2:08 pm
Forum: Beginners
Topic: A newb's two problems [solved]
Replies: 4
Views: 187

Re: A newb's two problems

Hi, So my Pi2b boots and is usable, but two problems emerge, one of them through PROBABLY my own clumsyness. #1: the monitor is capable of displaying 1920 x 1080 @60Hz. Philips 223V, specially bought for the occasion. But only a lesser part of that sheer wealth of that monitor's real estate is used...
by pcmanbob
Sat Jun 16, 2018 12:30 pm
Forum: Troubleshooting
Topic: cant get Raspberry Pi 3 not booting in vga mode
Replies: 3
Views: 121

Re: cant get Raspberry Pi 3 not booting in vga mode

You have not given any details about the HDMI to VGA adapter you are using, but I do know you need an active converter, rather than just a passive cable for it to work with the pi.
by pcmanbob
Sat Jun 16, 2018 12:13 pm
Forum: General discussion
Topic: Raspberry Pi 3 B+ server connection issue - Octoprint
Replies: 1
Views: 88

Re: Raspberry Pi 3 B+ server connection issue - Octoprint

Hi.

First off I cant see any picture in your post.

secondly octoprint has it own help forum https://discourse.octoprint.org/ were you will probably get better support geared directly to octoprint.
by pcmanbob
Sat Jun 16, 2018 9:54 am
Forum: Weather station
Topic: DS18B20 using parasitic power
Replies: 2
Views: 267

Re: DS18B20 using parasitic power

If I remember correctly when I was investigating using DS18B20 on the pi when someone else had problems , the pi does not support parasitic power mode.

you have to supply power to the power pin on the device and pull the data pin high using a 4.7K resistor between 3.3v and the data pin.
by pcmanbob
Sat Jun 16, 2018 9:39 am
Forum: Troubleshooting
Topic: Pi Zero status LED meaning
Replies: 2
Views: 134

Re: Pi Zero status LED meaning

On the pi zero W the green LED indicates SD card access just like any pi, if there is no SD card in the slot then there is no LED lit. if you read the not booting sticky https://www.raspberrypi.org/forums/posting.php?mode=reply&f=28&t=216095 you will find the flash codes in there to help diagnose an...
by pcmanbob
Sat Jun 16, 2018 9:26 am
Forum: General discussion
Topic: Arduino board for only I/O purposes
Replies: 7
Views: 307

Re: Arduino board for only I/O purposes

Thanks for your fast reply. But I want to use the 5 VDC arduino board, this arduino will trigger 5 VDC coil relays. Which Arduino board (for I/O applications) should I buy and where please? Thanks Beny You could do this directly with the pi using a ULN2803A to switch the 5v relay coil using the hig...
by pcmanbob
Fri Jun 15, 2018 7:52 pm
Forum: Advanced users
Topic: Pi Desktop box don't work without HDMI
Replies: 7
Views: 213

Re: Pi Desktop box don't work without HDMI

It's Raspbian Stretch / Jessie than I downloaded and flash myself. I've added too specific deb package for Pi Desktop from here: https://github.com/pi-desktop/deb-make/releases I just don't see how software can prevent your pi booting if the HDMI is not connected, because the pi will not know the H...
by pcmanbob
Fri Jun 15, 2018 7:34 pm
Forum: Advanced users
Topic: Pi Desktop box don't work without HDMI
Replies: 7
Views: 213

Re: Pi Desktop box don't work without HDMI

For me, during a "normal" boot the red LED on the board turn on then the green LED turn on and blink. It's what happens with the PI desktop when the HDMI is connected. With the PI desktop with HDMI not connected, the red LED turn on but the green LED stay off. Plus the RaspberryPI is connected with...
by pcmanbob
Fri Jun 15, 2018 6:24 pm
Forum: Advanced users
Topic: Pi Desktop box don't work without HDMI
Replies: 7
Views: 213

Re: Pi Desktop box don't work without HDMI

Hi. Seeing as you have purchased a customised pi from element 14 you really need to ask them about booting without a screen. But in general if they are just using raspbian with a few add-on's I don't see any reason why your pi should not boot without the screen. what makes you think its not booting ...
by pcmanbob
Fri Jun 15, 2018 6:12 pm
Forum: Beginners
Topic: Read state of a 12v realy
Replies: 4
Views: 147

Re: Read state of a 12v realy

Hi. You post is a bit lacking in detail. what else is the relay doing ? if you have a spare change over contact on the relay you could just use this like any other switch you connect to the pi to determine the relays state. this web page will show you how to read a switch state using your pi https:/...
by pcmanbob
Fri Jun 15, 2018 5:50 pm
Forum: Python
Topic: Pi controlled RC car
Replies: 5
Views: 309

Re: Pi controlled RC car

So this is an enlargement of your image . https://i.imgur.com/xCjPhrx.jpg the top row of holes next to the blue line is connected to the pi ground and the battery neg so it becomes the ground rail of your bread board. The line of holes next to the red line would be the positive rail if you connected...
by pcmanbob
Fri Jun 15, 2018 3:57 pm
Forum: Beginners
Topic: How to stop multiple detection of button press?
Replies: 8
Views: 202

Re: How to stop multiple detection of button press?

This has a good explanation as to why you need a pull up or pull down resistor . https://github.com/raspberrypilearning/physical-computing-guide/blob/master/pull_up_down.md it also shows you how to protect your pi gpio in the event you set the gpio pin to output and high while it is shorted to groun...

Go to advanced search