Go to advanced search

by rhubarbdog
Sun Dec 30, 2018 12:17 am
Forum: Beginners
Topic: Wi-Fi issue powering Pi from gpio
Replies: 6
Views: 422

Re: Wi-Fi issue powering Pi from gpio

I have no problems running a pi zero w. Off a lithium ion remote control car battery via a regulator like yours . I have a 1.1 amp poly fuse in series between the regulator and raspberry pi
by rhubarbdog
Wed Dec 26, 2018 6:34 am
Forum: Beginners
Topic: Raspberry Pi 3 & L298N - Motor not turning
Replies: 15
Views: 1158

Re: Raspberry Pi 3 & L298N - Motor not turning

PWM is only available on a few pins i know BCM 18 is one of them
by rhubarbdog
Tue Dec 25, 2018 5:18 am
Forum: Beginners
Topic: Start programme with push button
Replies: 3
Views: 466

Re: Start programme with push button

Code 1 has a print statement. That's what needs replacing with your flashing led code. The part which makes the led flash is someting like

Code: Select all

while True:
    GPIO.output(23, GPIO.HIGH)
    time.sleep(0.5)
    GPIO.output(23, GPIO.LOW)
    time.sleep(0.5)
by rhubarbdog
Fri Dec 21, 2018 3:51 pm
Forum: Beginners
Topic: How to control the direction of wheels using Motor HAT?
Replies: 6
Views: 444

Re: How to control the direction of wheels using Motor HAT?

The OP said it looked like Ada fruit so i thought give it a try.
When you see the code the OP posted they didn't do much to obsficate from ada fruit motor hat code
by rhubarbdog
Fri Dec 21, 2018 1:42 pm
Forum: Beginners
Topic: How to control the direction of wheels using Motor HAT?
Replies: 6
Views: 444

Re: How to control the direction of wheels using Motor HAT?

Where's the file raspi_MotorHAT.py or directoty raspi_MotorHAT containing some python files?
Have you installed it using both pip and pip3?
by rhubarbdog
Fri Dec 21, 2018 2:46 am
Forum: Troubleshooting
Topic: PMW not working
Replies: 1
Views: 83

Re: PMW not working

PWM olny works on a few pins. There are 2 timers pin18 is one i think pin13 is the other.
If your wanting to control s few motors consider buying a HAT
by rhubarbdog
Fri Dec 21, 2018 2:39 am
Forum: Beginners
Topic: distinguish between booting and rebooting
Replies: 16
Views: 1295

Re: distinguish between booting and rebooting

Look into runlevel.
Runlevel is set to 1 at initial boot. It increases to 4 when your operating system move ito multi user mode.
When you select reboot this is set to 6 it remains at 6 throughout the power down process
by rhubarbdog
Fri Dec 21, 2018 2:34 am
Forum: Beginners
Topic: Extra Storage
Replies: 2
Views: 228

Re: Extra Storage

Yes. I'd consider one with it's own power supply or wire it through a powered usb hub and plug the hub into your raspberry pi .

The last thing you want is a disk to cause a loss of power and therefore data
by rhubarbdog
Thu Dec 20, 2018 4:26 am
Forum: Advanced users
Topic: Faster GPIO Access than mmap
Replies: 5
Views: 1206

Re: Faster GPIO Access than mmap

You need to consider assembly routines.
Read the bare metal forum.
Learn a bit of raspberry pi assembly
Then post your question there
by rhubarbdog
Thu Dec 20, 2018 4:20 am
Forum: Troubleshooting
Topic: A gap appears in the key strokes
Replies: 4
Views: 273

Re: A gap appears in the key strokes

Press CTRL+ALT+F2
Login on that screen and try.
Remember to logout or exit to a login prompt.

Press CTRL+ALT+F7 to get your windows back
by rhubarbdog
Thu Dec 20, 2018 4:16 am
Forum: Troubleshooting
Topic: Clean Up USB Mounts on Boot
Replies: 10
Views: 704

Re: Clean Up USB Mounts on Boot

The place your thumb drive mounts to is /media/$USER/USBDRIVE /media/$USER should be empty on boot. Your problem is your pulling the thumb drive out without ejecting it. This is dangerous on linux and you will loose data or corrupt your drive. Use the eject tool (top right of the screen) or the ejec...
by rhubarbdog
Thu Dec 20, 2018 4:05 am
Forum: Beginners
Topic: Forgot to apply thermal stuff to heat sinks :(
Replies: 5
Views: 417

Re: Forgot to apply thermal stuff to heat sinks :(

Try a volatile solvent like lighter gas ( butane) or methylated spitits ( wood alcohol).
The thermal compound *may* stick the heat sink back on the cpu
by rhubarbdog
Thu Dec 20, 2018 3:59 am
Forum: Beginners
Topic: How to control the direction of wheels using Motor HAT?
Replies: 6
Views: 444

Re: How to control the direction of wheels using Motor HAT?

There is 1 method and 2 values your interested in.

Code: Select all

motor.run(Adafruit_MotorHAT.BACKWARD)
motor.setSpeed(10)

Code: Select all

motor.run(Adafruit_MotorHAT.FORWARD)
motor.setSpeed(10)
I have this line at the top of my program

Code: Select all

from Adafruit_MotorHAT import Adafruit_MotorHAT, Adafruit_DCMotor
by rhubarbdog
Wed Dec 19, 2018 7:37 pm
Forum: Troubleshooting
Topic: Permission denied error even when using sudo.
Replies: 17
Views: 1326

Re: Permission denied error even when using sudo.

Try making the file executable. That's what your trying when you type ./_autoplay-list
Have you used

Code: Select all

ls -l _autoplay-list
to detetmine who owns it and what the permission are.
by rhubarbdog
Wed Dec 19, 2018 7:30 pm
Forum: Troubleshooting
Topic: issue with enter key and screen program
Replies: 13
Views: 609

Re: issue with enter key and screen program

Unplug your GSM. Wait 1 minute, plug it back in type

Code: Select all

dmesg | tail
that should indicate which device file the modem has connected to
by rhubarbdog
Wed Dec 19, 2018 7:22 pm
Forum: Troubleshooting
Topic: Port "busy" when trying to send AT commands to modem
Replies: 3
Views: 381

Re: Port "busy" when trying to send AT commands to modem

You have to terminate screen correctly. Ctrl+A \ then answer yes to the question. All other methods back to a command prompt leave a lock on /dev/ttyACMx Using lsof which you will have to install will help. sudo apt-get install lsof Then kill the processes which have the file in question open. kill ...
by rhubarbdog
Wed Dec 19, 2018 7:10 pm
Forum: Beginners
Topic: Running Python script from USB
Replies: 5
Views: 555

Re: Running Python script from USB

Yes your program is a script. The executable python / python3 resides in /usr/bin on the raspberry pi
by rhubarbdog
Fri Dec 14, 2018 5:36 am
Forum: Troubleshooting
Topic: None of the gpios are working in my rpi 3B .
Replies: 4
Views: 283

Re: None of the gpios are working in my rpi 3B .

Get an LED with a 330 ohm or bigger series resistor. Wire it direct to 3v3 pin1 and ground pin6 if it doesn't light swap the wires. If it still doesn't light i can't help buy a new pi?
by rhubarbdog
Fri Dec 14, 2018 12:46 am
Forum: Beginners
Topic: Raspberry pi 3b+ as a portable console/PC
Replies: 21
Views: 2561

Re: Raspberry pi 3b+ as a portable console/PC

I've had good success with a 7.2volt remote control car battery powering a 5 volt voltage regulator with a poly fuse in series connected to 5volt and ground gpio pins on a pi zero.
Don't omit the poly fuse if you are powering direct to gpio pins.
by rhubarbdog
Wed Dec 12, 2018 5:04 am
Forum: Troubleshooting
Topic: RPi3 Freeze
Replies: 11
Views: 1928

Re: RPi3 Freeze

Is your internet working.

Don't use a swap partition with sdcard. It breaks them
by rhubarbdog
Wed Dec 12, 2018 5:01 am
Forum: Troubleshooting
Topic: Raspbery Pi Zero W getting Heated and Dead when used the internal pull-up register for both GPIO13 and GPIO20
Replies: 1
Views: 121

Re: Raspbery Pi Zero W getting Heated and Dead when used the internal pull-up register for both GPIO13 and GPIO20

Check your circuit.
It sounds like you have a short.
Try moving logic and circuit from pin20 to another pin. But thats probably just going to damage more of your pi
by rhubarbdog
Wed Dec 12, 2018 4:56 am
Forum: Beginners
Topic: GPIO Zero Cleanup Command?
Replies: 4
Views: 833

Re: GPIO Zero Cleanup Command?

To stop a program with CTRL-C and have it tidyup requires a little extra code.

Code: Select all

try:
  while True:
    # animation loop
    
except KeyboardInterrupt:
  pass
  
# tidy up here
by rhubarbdog
Sat Dec 08, 2018 11:32 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: bme280 on i2c problem
Replies: 4
Views: 749

Re: bme280 on i2c problem

Down load my driver class from github and just run it. You will need to specify an address as i think my sensor is on the other default address 0x76
by rhubarbdog
Sat Dec 08, 2018 1:51 am
Forum: Beginners
Topic: (solved) python forecastio / darksky displaying current data
Replies: 5
Views: 724

Re: python forecastio / darksky displaying current data

have you seen the BOSCH bme280 temperature/humidity/pressure detector.
The onlly thing that's lacking is wind speed
Search for it on GitHub https://github.com
or in the Interfacing forum on this site viewforum.php?f=44
by rhubarbdog
Sat Dec 08, 2018 1:41 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: bme280 on i2c problem
Replies: 4
Views: 749

Re: bme280 on i2c problem

if it has to be 1 wire the AM2320 has a larger range than the dht11(0-50C)
https://github.com/rhubarbdog/AM2320_1wire @ GithHub

Go to advanced search