Go to advanced search

by chgus
Thu Jun 18, 2015 1:10 pm
Forum: Beginners
Topic: No camera in raspi-config menu? (solved)
Replies: 5
Views: 1643

Re: No camera in raspi-config menu?

Interesting ... The following packages were automatically installed and are no longer required: libblas3gf liblapack3gf mtools Use 'apt-get autoremove' to remove them. The following extra packages will be installed: triggerhappy The following NEW packages will be installed: triggerhappy The followin...
by chgus
Thu Jun 18, 2015 12:30 pm
Forum: Beginners
Topic: No camera in raspi-config menu? (solved)
Replies: 5
Views: 1643

Re: No camera in raspi-config menu?

It's not THAT ancient: uname -a Linux raspberrypi 3.18.11+ #781 PREEMPT Tue Apr 21 18:02:18 BST 2015 armv6l GNU/Linux Even so - i will now do an upgrade just to have that question off the list. $ sudo apt-get upgrade Reading package lists... Done Building dependency tree Reading state information......
by chgus
Thu Jun 18, 2015 12:11 pm
Forum: Beginners
Topic: No camera in raspi-config menu? (solved)
Replies: 5
Views: 1643

No camera in raspi-config menu? (solved)

I feel so stupid ... I'm trying to use te PiNoir for the first time. Everyting seem so straight forward. Just enable camera in raspi-config. Except: ┌──────────────────────────────────────────────────────────────────────────────┐ │ Raspi-config │ │ │ │ info Information about this tool │ │ expand_roo...
by chgus
Wed Mar 18, 2015 4:19 am
Forum: Java
Topic: pi java project: speedometer
Replies: 3
Views: 3211

Re: pi java project: speedometer

Do you have internet connection at the workshop? If yes have a look at the streaming API at https://plot.ly/streaming/
by chgus
Tue Mar 17, 2015 10:56 pm
Forum: Gaming
Topic: STICKY: GAMES LIST: Games That Work On The Pi
Replies: 300
Views: 574413

Re: GAMES LIST: Games That Work On The Pi

Great list! Xmille is a card game. The goal is to hit the finish line before your opponent by using speed cards. I addition you may restrict your opponent by using car crash cars, speed limit cards etc. To resolve them there are cards that fix those limitations. To start you need as step 1 click the...
by chgus
Tue Mar 17, 2015 10:26 pm
Forum: Beginners
Topic: Socket tutorial for dummies - PI 2
Replies: 5
Views: 10094

Re: Socket tutorial for dummies - PI 2

Am I right if I assume that the JS is executing in your browser and the python on your RPi server?

My turn to wear the dummy hat:
Help me understand why "multiple instances" break your solution.
What direction(s) and how does data travel browser<->server?
by chgus
Tue Mar 17, 2015 10:04 pm
Forum: Beginners
Topic: Raspbian, incorrect login
Replies: 6
Views: 2465

Re: Raspbian, incorrect login

Are you shure you connect to your RPi and not any other device? A while ago i wasted some time after my DHCP assignment changed. :oops: I tried a failed ssh login attempt x3 from my Mac and got the following response: ssh pi@raspberrypi pi@raspberrypi's password: Permission denied, please try again....
by chgus
Tue Mar 17, 2015 9:15 pm
Forum: Troubleshooting
Topic: Pi not booting properly / USB port problems
Replies: 6
Views: 615

Re: Help

You say you get a black screen with lots of lines.

OK - nice.

What is the last messages you can see on that screen?
- it might be a logon message.
- it might be a clue to a problem you need to resolve.

- any messages on that screen that would trigger a suspicious mind?
by chgus
Tue Mar 17, 2015 9:07 pm
Forum: Beginners
Topic: Socket tutorial for dummies - PI 2
Replies: 5
Views: 10094

Re: Socket tutorial for dummies - PI 2

This would be a good start, it has examples included:
https://docs.python.org/2/library/socketserver.html

By the way, sockets is both ancient unix and relative low level. If you provide more detail you might get better answers. Have you considered XMLHttpRequest?
by chgus
Tue Mar 17, 2015 8:52 pm
Forum: General programming discussion
Topic: mysql - trigger on delete
Replies: 3
Views: 742

Re: mysql - trigger on delete

I think i see what you want to do. I've done something very similar but with a twist compared to your database design. I work with python / sqlite3 where sqlite3 has less functionality than mysql. I have a 'data' table where all data readings get stored. Then i have a 'current' table as a shadow tab...
by chgus
Mon Mar 16, 2015 11:15 pm
Forum: General discussion
Topic: POE support on Rpi 3
Replies: 107
Views: 16493

Re: POE support on Rpi 3

Like others here I find PoE on a future pi highly implausible, add up the cost of the beefier transformers, the control chip and the isolated DC-DC converters and you end up with something that adds a substantial chunk to the BoM cost of something like the Pi for an application that is outside the ...
by chgus
Sun Mar 15, 2015 11:49 pm
Forum: Automation, sensing and robotics
Topic: ACS712 with PFC8591
Replies: 3
Views: 1784

Re: ACS712 with PFC8591

The PCF8591 will do well as long as you power it from 3.3V. But according to the data sheet that also reduce the analog range to 3.3V. The RPi does not react well to 5V on the I/O pins. You might kill a pin or the whole RPi. From my own experience it come down to the resistors used in the voltage di...
by chgus
Sun Mar 15, 2015 10:52 pm
Forum: Automation, sensing and robotics
Topic: How can I wire a battery pack and servo to the GPIO pins?
Replies: 6
Views: 1081

Re: How can I wire a battery pack and servo to the GPIO pins

Hi Using code and timing to form servo signal in the RPi might prove unsuccessful. Even if You do everything correct in your code it might still be a bit jumpy. Making the servo signal is a real time task - and the RPi is NOT a real time platform. I would expect to se jitter or spastic moves from th...
by chgus
Sun Mar 15, 2015 9:44 pm
Forum: Automation, sensing and robotics
Topic: home automation
Replies: 8
Views: 2801

Re: home automation

Hi Have you thought through your intended logic fully? Do you want your RPi to set the switch to a specific state or just toggle any state? Have you considered using your RPi together with for example X10 or other home control systems? TellStick for example is a small usb device that can interface w...
by chgus
Sun Mar 15, 2015 9:29 pm
Forum: Automation, sensing and robotics
Topic: Parts needed - Control of 2 pumps & 4 valves
Replies: 2
Views: 986

Re: Parts needed - Control of 2 pumps & 4 valves

In most parts agree with the previous poster except that valves will use 0.5A, not 2A. Two ULN2805A with the gates paired two and two in parallel should be able to drive your pumps and valves. If possible i would power the pump with 24v and the valves with 12v. Driving the pump might need more than ...
by chgus
Sun Mar 15, 2015 8:23 pm
Forum: Automation, sensing and robotics
Topic: Garage door
Replies: 4
Views: 819

Re: Garage door

OPEN-A and (-) for shure. Connect a wire between them and watch the door go up ;)
Next: replace the wire with the relay connectors that close when the relay is activated.
by chgus
Sun Mar 15, 2015 6:43 pm
Forum: Automation, sensing and robotics
Topic: send email when detecting gpio low or high
Replies: 28
Views: 5584

Re: send email when detecting gpio low or high

You might use a callback. This way your solution become event driven. It also open up for monitoring multiple pins with very small code changes. Below is a small skeleton code segment as an example: #!/usr/bin/env python import RPi.GPIO as GPIO import email import smtplib from email.mime.text import...
by chgus
Sun Mar 15, 2015 5:35 pm
Forum: Automation, sensing and robotics
Topic: Idea2: Pi driven washing machine
Replies: 7
Views: 7354

Re: Idea2: Pi driven washing machine

Hi inventors ... One way to drive solenoids, 240V relays etc from logic levels is to use a MOC3081 http://www.wvshare.com/img/pinout/MOC3081M_l.jpg or equivalent. It is a opto coupled thyristor for small loads. Add external thyristor for higher loads. I have used it in previous projects and it works...
by chgus
Thu Feb 26, 2015 1:19 pm
Forum: Python
Topic: rpi.gpio error 'module' object has no attribute 'setmode'
Replies: 12
Views: 13221

Re: rpi.gpio error 'module' object has no attribute 'setmod

Hi, i guess i'm on to the cause of this problem. One upon a time I installed a 0.1.0 version GPIO on my very first Pi board. Since then RPi.GPIO has become part of the distribution and is installed by apt-get install command. Got the instructions from a web page after some google check. It might hav...

Go to advanced search