Go to advanced search

by rpdom
Tue Sep 18, 2018 6:06 pm
Forum: Other programming languages
Topic: A compilable basic that uses line numbers for Pi?
Replies: 8
Views: 187

Re: A compilable basic that uses line numbers for Pi?

Simple ways of accessing the gpios that should work from almost any language: a) If the BASIC has a way of running system commands, you could use WiringPi's gpio command. b) Pretty much any BASIC should be able to read and write files, so use the sysfs gpio interface for straightforward gpio functio...
by rpdom
Tue Sep 18, 2018 5:06 am
Forum: Other projects
Topic: Dot matrix paper feeder ideas
Replies: 8
Views: 116

Re: Dot matrix paper feeder ideas

Could you look around for the sheet feeder option for that printer. I think it will take up to 50 sheets at a time.
by rpdom
Mon Sep 17, 2018 8:06 pm
Forum: Compute Module
Topic: How to get a 2nd Camera Adapter Board?
Replies: 29
Views: 5669

Re: How to get a 2nd Camera Adapter Board?

I believe the Pi Zero uses the same camera connector as the CMIO board, so a cable for the zero should do the trick.
by rpdom
Sun Sep 16, 2018 6:18 pm
Forum: General discussion
Topic: POE Hat Quarantine (Orders Blocked due to Hardware Issue)
Replies: 10
Views: 291

Re: POE Hat Quarantine (Orders Blocked due to Hardware Issue)

- Blocks all GPIO pins and therefore hat stacking You can use a header with long pins to allow stacking a HAT on top of the PoE HAT (this is the only HAT that allows stacking at the moment). It does mean using longer spacers to mount the PoE HAT on the Pi. It would be nice if the header and spacers...
by rpdom
Sun Sep 16, 2018 1:26 pm
Forum: Beginners
Topic: Power for multiple PI's
Replies: 9
Views: 874

Re: Power for multiple PI's

I use an Anker 6 port 60w USB charger. Typically three or four pis running off it, with assorted HATS or doohickeys on a breadboard sucking power as well. Which Pi's do you run off this? Will it work fine with the Raspbery Pi 3+ Model B? Seeing as you are replying to a post that was made about two ...
by rpdom
Sun Sep 16, 2018 12:59 pm
Forum: Troubleshooting
Topic: Pi3 won't recover from reboot
Replies: 13
Views: 306

Re: Pi3 won't recover from reboot

try using the shutdown command? a 'shutdown -h' will stop the system and it will not restart until powered down and powered back up or reset is pulled to ground. a 'shutdown -r' will restart the system.. sudo shutdown -r now is the instant restart command i use, The "reboot" command is the equivale...
by rpdom
Sun Sep 16, 2018 6:40 am
Forum: Beginners
Topic: Need an easy NAS setup for a 3 B+
Replies: 9
Views: 260

Re: Need an easy NAS setup for a 3 B+

Also, I am interested in using NTFS, and maybe booting from the hard disk. If you are making a NAS with a Raspberry Pi and Raspbian, you'll want to stick to an ext4 filesystem - unless you plan to disconnect the disk and plug it directly into a Windows or Mac system sometimes. etx4 will deliver the...
by rpdom
Sun Sep 16, 2018 6:16 am
Forum: Python
Topic: int Object has no attribute GPIO
Replies: 19
Views: 248

Re: int Object has no attribute GPIO

kentang1102 wrote:
Sun Sep 16, 2018 6:09 am
hi,

That means I need to put

Code: Select all

 at the first line, than 
at the last?

Thanks,
That works :-)
by rpdom
Sun Sep 16, 2018 5:59 am
Forum: Python
Topic: int Object has no attribute GPIO
Replies: 19
Views: 248

Re: int Object has no attribute GPIO

kentang1102: Are you saying that I have to add "code:select all" on the top of the codes? No, instead of typing your code like this: import RPi.GPIO as GPIO from time import sleep import threading import sys import sys,tty,termios (etc.) type it like this: import RPi.GPIO as GPIO from time import sl...
by rpdom
Sun Sep 16, 2018 5:58 am
Forum: Python
Topic: int Object has no attribute GPIO
Replies: 19
Views: 248

Re: int Object has no attribute GPIO

kentang1102: Are you saying that I have to add "code:select all" on the top of the codes? No, instead of typing your code like this: import RPi.GPIO as GPIO from time import sleep import threading import sys import sys,tty,termios (etc.) type it like this: [code] import RPi.GPIO as GPIO from time im...
by rpdom
Sat Sep 15, 2018 2:37 am
Forum: Beginners
Topic: ping ip adress to see if up or down
Replies: 17
Views: 267

Re: ping ip adress to see if up or down

There is a fix, described here
by rpdom
Fri Sep 14, 2018 5:30 pm
Forum: Beginners
Topic: ping ip adress to see if up or down
Replies: 17
Views: 267

Re: ping ip adress to see if up or down

Which version of Raspbian are you using? If I remember correctly, there was a bug in one of the much earlier versions where ping wouldn't work properly without sudo. The next release fixed that.
by rpdom
Fri Sep 14, 2018 5:31 am
Forum: Beginners
Topic: ping ip adress to see if up or down
Replies: 17
Views: 267

Re: ping ip adress to see if up or down

You're missing a space after -w2, so you are running the command

Code: Select all

ping -c1 -w2192.168.0.2
which is invalid. It should be

Code: Select all

ping -c1 -w2 192.168.0.2
by rpdom
Tue Sep 11, 2018 7:19 pm
Forum: General discussion
Topic: Looks like Firefox is now officially unsupported in Raspbian
Replies: 13
Views: 494

Re: Looks like Firefox is now officially unsupported in Raspbian

Actually it shouldn't be too hard to install FF ESR from Debian on a Pi2 or Pi3. I was surprised at first to see that the newer version wasn't in Raspbian, then I noticed it was in the Stretch Security updates repo. I guess Raspbian doesn't track that fully.
by rpdom
Tue Sep 11, 2018 6:16 am
Forum: General discussion
Topic: Pi to Pi communication
Replies: 10
Views: 307

Re: Pi to Pi communication

Just for my information, are the GPIO pins of the rpi protected with a internal diode circuit as convention uControllers are?? No. There are some diodes in there, but they are not designed to handle over-voltage situations. Put much more than 3.3V or less than 0V into a GPIO and you can burn out th...
by rpdom
Mon Sep 10, 2018 4:54 am
Forum: General discussion
Topic: Ho to use pi Zero as USB Device & USB host at same time
Replies: 2
Views: 91

Re: Ho to use pi Zero as USB Device & USB host at same time

It is not possible. The USB on the Pi Zero can only be host or device. It can't be both. Hubs can only be connected in host mode. Perhaps you could use two Pi Zero W, one as host, one as device and link them together via wifi or bluetooth. Or just a pair of plain zeroes linked via UART.
by rpdom
Sun Sep 09, 2018 4:23 pm
Forum: Raspbian
Topic: Will people please think about low res displays?
Replies: 45
Views: 1097

Re: Will people please think about low res displays?

So would it be to much to ask that as time allows to update the versions of the included applications to run on at least displays having a vertical resolution of 480 pixels, without having to drag the windows around to get access to the bottom controls? As the applications are open source, it could...
by rpdom
Sun Sep 09, 2018 8:20 am
Forum: Other programming languages
Topic: Bash script for read .txt
Replies: 11
Views: 183

Re: Bash script for read .txt

Try this #!/bin/bash text="$(cat /home/pi/rpi-fruitbox-master/skins/Cabinet/led.txt.)" sudo /home/pi/rpi-rgb-led-matrix/examples-api-use/scrolling-text-example -f /home/pi/rpi-rgb-led-matrix/fonts/10x20.bdf -s 3 -C 0,0,255 -l 1 -y 5 --led-rows=32 --led-cols=64 --led-chain=3 "$text" Does your filenam...
by rpdom
Sun Sep 09, 2018 7:31 am
Forum: Beginners
Topic: Shutdown at command level
Replies: 8
Views: 220

Re: Shutdown at command level

The python program will be sent signals during the shutdown. The first is a "please close down now", if that doesn't work it gets sent a "end now!" request. If it still hasn't ended (which it should have done on the first request), it will just be terminated. There should be no need to do anything s...
by rpdom
Sun Sep 09, 2018 3:13 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: DS18B20 Max Distance
Replies: 24
Views: 33642

Re: DS18B20 Max Distance

jackaroo wrote:
Wed Sep 05, 2018 10:07 pm
Those of you who remember ol' "10BaseT" coax-networking cables
There was no such thing as "10BaseT" coax. The "T" stands for "Twisted pair" and refers to the CAT-5 type cables that most people are familiar with. Coax Ethernet was 10Base2 (or 10Base5 for the thicker version).
by rpdom
Sat Sep 08, 2018 4:36 pm
Forum: Troubleshooting
Topic: Seagate hdd problem.
Replies: 13
Views: 258

Re: Seagate hdd problem.

I use 2TB Seagate Expansion drives. I haven't had any success booting them without an SD card in a 3B, but they work fine with a 3B+
by rpdom
Fri Sep 07, 2018 7:41 pm
Forum: Troubleshooting
Topic: SOLVED!: Downgrading from rpi upgrade unstable kernel
Replies: 21
Views: 472

Re: Need Help! Raspberry Pi Problem!

If you copy the new kernel file over, you will probably have to update the files in /lib/modules on the root partition for use with the updated kernel version.
by rpdom
Tue Sep 04, 2018 7:05 pm
Forum: General discussion
Topic: Power Cable with switch
Replies: 30
Views: 921

Re: Power Cable with switch

Ours can't flip the switches on power strips, even if they did escape their enclosures. Well, there ya go. I guess everything has an upside. Actually, it was because of them (well, it was just the one at the time) that I started one of my Pi projects. It started out as just a simple temperature sen...
by rpdom
Tue Sep 04, 2018 6:56 pm
Forum: General discussion
Topic: Power Cable with switch
Replies: 30
Views: 921

Re: Power Cable with switch

Actually, I think switches on power strips are a curse, because I'm always afraid my cat is going to walk on it and shut everything down. See? You've got the wrong pet. Ours can't flip the switches on power strips, even if they did escape their enclosures. (currently 46 tarantulas of various types ...
by rpdom
Tue Sep 04, 2018 1:13 pm
Forum: General discussion
Topic: Help with circuit
Replies: 5
Views: 148

Re: Help with circuit

lucandmendes wrote:
Tue Sep 04, 2018 1:04 pm
My question is:

Do I need the ground to PI 3?
Do you mean the ground to pin 6? Yes. You do.

Go to advanced search