Go to advanced search

by deepo
Mon Oct 21, 2019 9:11 pm
Forum: Beginners
Topic: Raspberry Pi Zero-based USB flash-drive reformatter/wiper
Replies: 12
Views: 264

Re: Raspberry Pi Zero-based USB flash-drive reformatter/wiper

wildfire wrote:
Mon Oct 21, 2019 8:51 pm
deepo wrote:
Mon Oct 21, 2019 8:45 pm

Because the Raspberry Pi Zero uses the micro SD card slot on the board for the OS. So it's occupied.

/Mogens
I think you've misinterpreted OP's needs, he wants to wipe usb drives not uSD cards.
Oh - I did...

/Mogens
by deepo
Mon Oct 21, 2019 8:45 pm
Forum: Beginners
Topic: Raspberry Pi Zero-based USB flash-drive reformatter/wiper
Replies: 12
Views: 264

Re: Raspberry Pi Zero-based USB flash-drive reformatter/wiper

The Pi Zero needs an SD card to boot from, so you need another SD card reader for your project. But I guess it could be possible to make such a SD card as you describe it. /Mogens Thanks for your response but why would I need an external SD card reader? Because the Raspberry Pi Zero uses the micro ...
by deepo
Mon Oct 21, 2019 8:35 pm
Forum: General discussion
Topic: BLE
Replies: 2
Views: 140

Re: BLE

I'm not sure what you want, because BLE is usually a device advertising data to any devices listening for it.
If you want a RPi to advertise BLE data then these two examples may be of interest:
https://pimylifeup.com/raspberry-pi-eddystone-beacon/
https://pimylifeup.com/raspberry-pi-ibeacon/

/Mogens
by deepo
Mon Oct 21, 2019 7:22 am
Forum: Other projects
Topic: Halloween sound Acitvator
Replies: 2
Views: 78

Re: Halloween sound Acitvator

I think it would be easier with a PIR sensor.

But there is a guide on detection motion here:
https://www.bouvet.no/bouvet-deler/utbr ... ry-pi-zero
You should be able to play a sound instead of sending an email or saving a picture.

/Mogens
by deepo
Mon Oct 21, 2019 7:13 am
Forum: Troubleshooting
Topic: Update and upgrade broke the system
Replies: 6
Views: 197

Re: Update and upgrade broke the system

If you can attach a monitor, then you could see the console while booting up. There may be clues as to what's going on.
Is ssh enabled?
Do you get a login prompt trying to ssh to the unit?
Could it be caps lock when entering password?

/Mogens
by deepo
Mon Oct 21, 2019 7:04 am
Forum: Beginners
Topic: Raspberry Pi Zero-based USB flash-drive reformatter/wiper
Replies: 12
Views: 264

Re: Raspberry Pi Zero-based USB flash-drive reformatter/wiper

The Pi Zero needs an SD card to boot from, so you need another SD card reader for your project.
But I guess it could be possible to make such a SD card as you describe it.

/Mogens
by deepo
Mon Oct 21, 2019 6:58 am
Forum: Beginners
Topic: How to send data from Pi to cloud
Replies: 4
Views: 118

Re: How to send data from Pi to cloud

by deepo
Mon Oct 21, 2019 6:43 am
Forum: General discussion
Topic: Adding email video alerts to home security system
Replies: 3
Views: 166

Re: Adding email video alerts to home security system

This line after your new recording code in bold: sendMail(data) It is trying to send "data" which is empty. You need to add code that attaches the .h264 file that's being recorded. Or You could look at section 4.11 in the link you gave, where data is being recorded into a io.BytesIO() stream. This s...
by deepo
Mon Oct 21, 2019 6:36 am
Forum: General discussion
Topic: Battery Uptime
Replies: 8
Views: 215

Re: Battery Uptime

uptime.sh #!/bin/bash echo $(date) - $(uptime) >> uptime.log You may have to add a full path to where the log is to be. Don't select a place that gets wiped at boot. uptime.log Mon Oct 21 06:32:38 UTC 2019 - 06:32:38 up 9 days, 23:47, 1 user, load average: 1.05, 1.03, 1.05 I don't have a Raspberry P...
by deepo
Mon Oct 21, 2019 6:31 am
Forum: General discussion
Topic: Battery Uptime
Replies: 8
Views: 215

Re: Battery Uptime

Create a .sh procedure that will append (>>) output of "date" command to a previously created .txt file. Also, create a crontab entry calling that .sh procedure every 10 minutes or less. First and last entry into .txt file should be measured time period. After rebooting you have less than 10 minute...
by deepo
Sun Oct 20, 2019 4:01 pm
Forum: General discussion
Topic: Adding email video alerts to home security system
Replies: 3
Views: 166

Re: Adding email video alerts to home security system

Maybe use the record_sequence() function of the PiCamera API?
https://picamera.readthedocs.io/en/rele ... amera.html

/Mogens
by deepo
Sun Oct 20, 2019 8:58 am
Forum: C/C++
Topic: C program for SIM900 module to Rasberry Pi
Replies: 2
Views: 79

Re: C program for SIM900 module to Rasberry Pi

You don't mention what you have tried or what fails for you.
But maybe the C code from this project could help?
https://github.com/Seeed-Studio/GPRS_SIM900

/Mogens
by deepo
Sat Oct 19, 2019 9:51 pm
Forum: Graphics, sound and multimedia
Topic: sideways camera cars
Replies: 1
Views: 81

Re: sideways camera cars

Welcome! There are several mini spy cams that run on WiFi, if you google a little. I don't think that a Raspberry Pi will give you anything these cameras can't do by themselves. But I guess having to connect to a camera every time you want to leave your place will be getting old real fast. So maybe ...
by deepo
Sat Oct 19, 2019 8:45 pm
Forum: Advanced users
Topic: Screen Cast from Cell Phone to Pi
Replies: 3
Views: 149

Re: Screen Cast from Cell Phone to Pi

You might want to look at these guides on how to stream music to Raspberry Pi:
https://pimylifeup.com/raspberry-pi-airplay-receiver/
https://pimylifeup.com/raspberry-pi-chromecast/
https://www.youtube.com/watch?v=IsUbY2E_0h0

There are several ways to do this, so you could go Google them.

/Mogens
by deepo
Sat Oct 19, 2019 6:51 pm
Forum: Troubleshooting
Topic: dtoverlay gpio-shutdown not working on Stretch
Replies: 3
Views: 137

Re: dtoverlay gpio-shutdown not working on Stretch

I have spent the evening trying out older Raspbian versions, but none of them work (for my purpose) very long. Some of them I can get a shutdown from a few seconds after booting up the Raspbian Stretch. If I let the Raspbian sit idle for a few minutes, then it doesn't react to shorting GPIO3 to GND....
by deepo
Fri Oct 18, 2019 9:13 pm
Forum: Troubleshooting
Topic: Use battery as a back-up when main power goes down
Replies: 17
Views: 444

Re: Use battery as a back-up when main power goes down

OK, sorry - bad idea.

/Mogens
by deepo
Fri Oct 18, 2019 9:38 am
Forum: Troubleshooting
Topic: Use battery as a back-up when main power goes down
Replies: 17
Views: 444

Re: Use battery as a back-up when main power goes down

A really simple solution would be to get a power bank, and power your RPi from that, and then connect a charger to the power bank. Edit: See below This page lists power consumption of RPi's: https://www.pidramble.com/wiki/benchmarks/power-consumption Example: RPi 3B+ at idle: 350 mA 24 h * 350 mA =...
by deepo
Fri Oct 18, 2019 9:15 am
Forum: Beginners
Topic: what does cd $cwd do?
Replies: 5
Views: 135

Re: what does cd $cwd do?

Nothing! It means "change directory to current working directory" but this is where you already are (inside a terminal). Not necessarily true. $cwd is a variable that I guess the OP found in a script somewhere. If you are logged in as e.g. pi and are currently in the / folder and then type cd $cwd ...
by deepo
Thu Oct 17, 2019 3:52 pm
Forum: Troubleshooting
Topic: dtoverlay gpio-shutdown not working on Stretch
Replies: 3
Views: 137

Re: dtoverlay gpio-shutdown not working on Stretch

I'm not looking for gpio-poweroff, which drives an output and specifically states that it ruins my attempt at powering on and off (halt actually) my RPi using gpio-shutdown. https://raw.githubusercontent.com/raspberrypi/firmware/master/boot/overlays/README Name: gpio-poweroff Info: Drives a GPIO hig...
by deepo
Thu Oct 17, 2019 11:52 am
Forum: Beginners
Topic: Create audio looper that plays on boot
Replies: 1
Views: 75

Re: Create audio looper that plays on boot

Putting files onto your RPi is explained here: https://www.raspberrypi.org/documentation/remote-access/ Look at SFTP, SSH and SCP. I usually enable SSH, which also enables SCP. I use WinSCP for Windows. Playing audio is explained here: https://www.raspberrypi.org/documentation/usage/audio/ You could...
by deepo
Sat Oct 12, 2019 9:13 pm
Forum: Beginners
Topic: Universal Basic Programs for Image
Replies: 4
Views: 214

Re: Universal Basic Programs for Image

This article mentions Yocto as a way to tailor Linux contents for your RPi.
https://hackaday.com/2019/08/13/simple- ... a-pi-zero/

/Mogens
by deepo
Fri Oct 11, 2019 3:20 pm
Forum: Troubleshooting
Topic: Changing MAC address
Replies: 1
Views: 118

Re: Changing MAC address

I guess that the mac address is somehow calculated at first boot. But I don't know. Here is an article on how to spoof the mac address to some specific value: https://pimylifeup.com/raspberry-pi-mac-address-spoofing/ Here is a thread on mac address of Raspberry Pi's: https://www.raspberrypi.org/foru...
by deepo
Fri Oct 11, 2019 3:06 pm
Forum: Beginners
Topic: Headless with display blanked
Replies: 3
Views: 269

Re: Headless with display blanked

by deepo
Fri Oct 11, 2019 3:02 pm
Forum: Beginners
Topic: Programming audio log, need help
Replies: 1
Views: 51

Re: Programming audio log, need help

Yeah, why not? You could use python to do that: Play audio https://raspberrypi.stackexchange.com/questions/7088/playing-audio-files-with-python Record audio https://makersportal.com/blog/2018/8/23/recording-audio-on-the-raspberry-pi-with-python-and-a-usb-microphone Control I/O: https://pythonprogram...
by deepo
Thu Oct 10, 2019 6:13 pm
Forum: Troubleshooting
Topic: dtoverlay gpio-shutdown not working on Stretch
Replies: 3
Views: 137

dtoverlay gpio-shutdown not working on Stretch

I performed an upgrade on my RPi 3B+ running Stretch Lite yesterday and now my shutdown button doesn't work. I am at this kernel: uname -a Linux raspberrypi 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l GNU/Linux I have this in boot/config.txt: dtoverlay=gpio-shutdown,gpio_pin=3 There do...

Go to advanced search