Go to advanced search

by occupied
Mon Dec 05, 2016 12:18 am
Forum: C/C++
Topic: Controlling I2C LCD display
Replies: 4
Views: 1688

Re: Controlling I2C LCD display

---Edited--- Firstly, thank you for your patience! It is a 4x20 display with a HD44780 controller and a PCF8574T on the I2C backpack. display.jpg 0x27 is the I2C address. My apologies for not spotting the direct reference to my problem - what threw me off was that your code doesn't use wiringPiI2C.....
by occupied
Sun Dec 04, 2016 8:22 pm
Forum: C/C++
Topic: Controlling I2C LCD display
Replies: 4
Views: 1688

Re: Controlling I2C LCD display

Thank you for your reply. Would I be correct in surmising that it is possible to do this i.e. access the functions in <lcd.h> even though the LCD is connected through I2C? I've had a look through your code but I'm afraid I'm going to need it "dumbing down" a little more for me, if any one has the pa...
by occupied
Sun Dec 04, 2016 6:00 pm
Forum: C/C++
Topic: Controlling I2C LCD display
Replies: 4
Views: 1688

Controlling I2C LCD display

I'm migrating a project from Python to C, mainly because I have some previous experience with a C-based language... however, I'm rapidly seeing a lot of differences and getting somewhat out of my depth! I found this code which was a very useful starting point: /* * * by Lewis Loflin www.bristolwatch...
by occupied
Mon Sep 19, 2016 11:11 pm
Forum: General discussion
Topic: USB Rechargeable Battery to Power Pi
Replies: 5
Views: 2485

Re: USB Rechargeable Battery to Power Pi

Some powerbanks will restart the Pi when you try to charge them while connected, others don't. You'll just need to experiment.

See here and here for some models that do and don't exhibit this behaviour.
by occupied
Mon Sep 19, 2016 11:04 pm
Forum: General discussion
Topic: Relays and Voltage
Replies: 2
Views: 606

Re: Relays and Voltage

Thanks for the tip! :)
by occupied
Sun Sep 18, 2016 9:56 pm
Forum: General discussion
Topic: Relays and Voltage
Replies: 2
Views: 606

Relays and Voltage

Hello all, Something I should know the answer to but alas I don't. I have some relays: Relay.jpg My plan was to run 5V to VCC, GND to GND and 3.3V GPIO to IN... but no dice :( I then connected 3.3V to VCC and the relay works great :) So what is the reason the latter worked while the former wouldn't?...
by occupied
Tue Jun 14, 2016 7:32 am
Forum: General discussion
Topic: Be careful with Pi Zero and CSI slot
Replies: 39
Views: 10973

Re: Be careful with Pi Zero and CSI slot

Do you think it will hold up to your average school kid? I would have to agree with ecotec - if you're regularly using the CSI slot on a Pi Zero, at least with the thicker ribbon I got, I would expect some breakages. Maybe a thinner ribbon cable would give a difference result. That being said, mine...
by occupied
Sun Jun 05, 2016 9:42 pm
Forum: Other projects
Topic: Energy effiient timelapse camera setup
Replies: 7
Views: 2935

Re: Energy effiient timelapse camera setup

You won't get much life out of 8 x 1.5V batteries on a Pi 3. You can tweak a few things to bring the consumption down: Turn off HDMI /opt/vc/bin/tvservice -o Turn off USB bus (presuming you aren't using it) echo 0 | sudo tee /sys/devices/platform/soc/3f980000.usb/buspower Turn off the activity LED e...
by occupied
Sun Jun 05, 2016 3:56 pm
Forum: General discussion
Topic: Schematics of Raspberry Pi Zero
Replies: 35
Views: 28716

Re: Schematics of Raspberry Pi Zero

occupied wrote:Probably entering into the realms of fantasy now, but if they could be hot swapped without rebooting the Zero... maybe I'll have to experiment on a sacrificial Zero...
Hot swapping doesn't seem to work...
by occupied
Sun Jun 05, 2016 3:55 pm
Forum: General discussion
Topic: Schematics of Raspberry Pi Zero
Replies: 35
Views: 28716

Re: Schematics of Raspberry Pi Zero

What you probably need to do is design what might be thought of as a high-current OR gate that manages current flow sensibly (no back feeding to a power source) and balances the inputs. Something like that would work for *any* Pi so long as it can deliver sufficient power for the Pi being used. Tha...
by occupied
Sun Jun 05, 2016 11:30 am
Forum: General discussion
Topic: Schematics of Raspberry Pi Zero
Replies: 35
Views: 28716

Re: Schematics of Raspberry Pi Zero

Nothing fancy on the Pi side :) . But this will only work if you connect the same power supply to both ports. If it's not the same power supply, you could damage the supply's. (The pi will probably be fine) ;) That's going to depend on the nature of the two supplies. Inevitably one will have a high...
by occupied
Sun Jun 05, 2016 10:08 am
Forum: General discussion
Topic: Schematics of Raspberry Pi Zero
Replies: 35
Views: 28716

Re: Schematics of Raspberry Pi Zero

the PI can be powered through either microUSB ports, its makes no difference which one. You can't kill the Zero by plugging the power into the data USB socket. It will work fine like that. A foolish question from the uneducated - what will happen if you connect a power source to both ports at the s...
by occupied
Wed Jun 01, 2016 10:48 am
Forum: Beginners
Topic: timelapse question
Replies: 6
Views: 1020

Re: timelapse question

raspistill has an inbuilt timelapse ability. Set how long (in milliseconds) you want to it run for with -t Set how long (in milliseconds) you want to wait between photos with -tl raspistill -o a%03d.jpg -t 3600000 -tl 10000 This will take a picture every 10 seconds (-tl 10000) for an hour (-t 360000...
by occupied
Wed Jun 01, 2016 7:58 am
Forum: General discussion
Topic: Start your engines.. pi zero in 5 minutes !
Replies: 53
Views: 8093

Re: Start your engines.. pi zero in 5 minutes !

Maybe I'll buy another seeing as I broke last week's in oh, about 5 minutes :lol:
by occupied
Mon May 30, 2016 5:31 pm
Forum: General discussion
Topic: Current Consumption Figures
Replies: 50
Views: 10165

Re: Current Consumption Figures

alexeames wrote: USB on, LEDs on. I run for about 30s to 1m and watch the meter readout and bench PSU readout.
Thanks :)
by occupied
Mon May 30, 2016 5:09 pm
Forum: General discussion
Topic: Current Consumption Figures
Replies: 50
Views: 10165

Re: Current Consumption Figures

http://raspi.tv/wp-content/uploads/2016/05/Pi-Zero-1.3-Power-Usage-table.png Note: my shoot video test is without recording to the SD card, but with and HDMI display attached. Again, interesting to compare your HD shoot with my figure and mikerr: Me: 216 mA with HDMI off, USB off, LEDs off, recordi...
by occupied
Mon May 30, 2016 4:58 pm
Forum: General discussion
Topic: Current Consumption Figures
Replies: 50
Views: 10165

Re: Current Consumption Figures

Results: 260mA recording 1080p Broadly similar to my results. The only difference being I also turn off the LEDs. Would love to see if that figure changes if you run the test for longer than 20 seconds. Setup Pi Zero + Camera, WIfi dongle (but its turned off in script below) , no HDMI I have notice...
by occupied
Mon May 30, 2016 4:57 pm
Forum: General discussion
Topic: Current Consumption Figures
Replies: 50
Views: 10165

Re: Current Consumption Figures

Thanks for posting up more figures :) A few things that have become apparent to me over the past few weeks: There are frequent spikes in consumption on all models, no matter what they are doing. I'm presuming this is caused by other things going on in the background. Therefore I've found I need to a...
by occupied
Mon May 30, 2016 7:53 am
Forum: General discussion
Topic: Current Consumption Figures
Replies: 50
Views: 10165

Re: Current Consumption Figures

I now have a Pi Zero to play with :) But I don't have the same test conditions that I used for the initial batch of testing, and I definitely don't have the time to repeat :| So... The clear champ from the first round of testing was the Pi 2B. Since then, I have been using the Pi 2B to record from t...
by occupied
Mon May 30, 2016 7:51 am
Forum: General discussion
Topic: Raspberry Pi Zero power consumption
Replies: 49
Views: 88510

Re: Raspberry Pi Zero power consumption

You can see the results of my initial test here
by occupied
Mon May 30, 2016 7:21 am
Forum: Advanced users
Topic: How to make a portable Pi 3
Replies: 15
Views: 7112

Re: How to make a portable Pi 3

I figured out what was wrong. The battery was low on charge. I mean, it still sucks that whenever the battery is low on charge the voltage drops! it should definitely not work like that, but when it's not low, the pi is powered properly. I just bought a RevPower 13400 mah and this thing is so great...
by occupied
Sun May 29, 2016 6:34 pm
Forum: General discussion
Topic: Be careful with Pi Zero and CSI slot
Replies: 39
Views: 10973

Re: Be careful with Pi Zero and CSI slot

I noticed the camera cable is thicker than the old camera cable, did that have any effect on the failure of the connector? Yes, you're quite right that it is thicker. Possibly it contributed, or maybe I was just being ham-fisted. I'll get a replacement at some point and see if I break that too :lol:
by occupied
Sun May 29, 2016 6:09 pm
Forum: General discussion
Topic: Be careful with Pi Zero and CSI slot
Replies: 39
Views: 10973

Be careful with Pi Zero and CSI slot

They are seemingly very fragile (I'm fairly sure this is the first component I've broken during installation in 20 years) :oops:
by occupied
Fri May 27, 2016 9:06 am
Forum: Troubleshooting
Topic: Running a code after every 10 minutes
Replies: 7
Views: 1176

Re: Running a code after every 10 minutes

I'm *very* new to python, so this may be inelegant. import math import time import datetime next = 0 while 1: now = datetime.datetime.now() if now >= next: # Run your code / function here mins = int(math.floor(now.minute / 10.0)) * 10 now = now.replace(minute = mins, second = 0, microsecond = 0) nex...
by occupied
Fri May 27, 2016 7:45 am
Forum: Advanced users
Topic: How to make a portable Pi 3
Replies: 15
Views: 7112

Re: How to make a portable Pi 3

Are you sure you need something that delivers 2.5A? If you don't plan to load up your Pi3 with USB attachments, you might be OK with less. You could look at a standard USB powerbank. No soldering and sold cheap as they're made in bulk. I have a RAVPower RP-PB07 that can be recharged at the same time...

Go to advanced search