Go to advanced search

by Major Tom
Mon Feb 20, 2017 11:34 am
Forum: Staffroom, classroom and projects
Topic: My Raspberry Pi class
Replies: 48
Views: 19876

Re: My Raspberry Pi class

Well everything got finished up and put away and I don't know what will happen next year. I guess I can write a short summary to close this thread. The biggest problem I had was not having a clear goal. I was told to do something with Raspberry Pi for the students. So, I made up a course starting wi...
by Major Tom
Wed Dec 14, 2016 11:16 am
Forum: Troubleshooting
Topic: FTP-Script does not work with Cronjob ? - Solved
Replies: 16
Views: 2916

Re: FTP-Script does not work with Cronjob ?

Tom's advice was bad for a number of reasons, but you should definitely re-read jojopi's comments. The "No such" error is referring to the non-existence of the needed *target* directories, not anything to do with the source file. My advice was not bad at all. I am curious to know the number of reas...
by Major Tom
Sun Dec 11, 2016 11:54 am
Forum: Troubleshooting
Topic: FTP-Script does not work with Cronjob ? - Solved
Replies: 16
Views: 2916

Re: FTP-Script does not work with Cronjob ?

Not sure, but I expect it's a path problem. When cron runs something for you it does not have the same environment as you do when you are running in a terminal. So, because you put the full path for the image here: /usr/bin/raspistill -st -n -t 2000 -o /home/pi/camera/$DATE.jpg -w 1024 -h 768 -q 100...
by Major Tom
Wed Dec 07, 2016 11:58 am
Forum: Python
Topic: Help in python coding
Replies: 11
Views: 2624

Re: Help in python coding

Well done for getting it going!

Here is a discussion on adding attachments to email. In the example the person is attaching a PDF file, but it could be any file, such as a JPG:
http://stackoverflow.com/questions/1966 ... using-smtp

Good luck!
by Major Tom
Thu Dec 01, 2016 12:47 pm
Forum: Beginners
Topic: Help USB Microphone
Replies: 2
Views: 639

Re: Help USB Microphone

It looks like this one:
https://www.sunfounder.com/wiki/index.p ... n_Raspbian

Maybe the same instructions will work for you.
by Major Tom
Thu Dec 01, 2016 12:40 pm
Forum: Beginners
Topic: First TIme using Pi3
Replies: 7
Views: 2040

Re: First TIme using Pi3

Hello Everyone I am using Raspberry Pi 3 for first time so do I need to have a separate keyboard mouse and monitor(of my personal computer.) or I can connect it to laptop and use laptop's screen,keyboard and mouse. Or I can just use my laptop's screen and connect separate keyboard and mouse. Please...
by Major Tom
Tue Nov 29, 2016 11:11 am
Forum: Staffroom, classroom and projects
Topic: My Raspberry Pi class
Replies: 48
Views: 19876

Re: My Raspberry Pi class

I am also delivering the same class that I did in the first part year at another local school, but this time compressed into 4 weekly sessions of 3 hours each. It is interesting that the class length is 3 hours. This goes against the popular idea that an hour class is already too long. However, it ...
by Major Tom
Mon Nov 28, 2016 12:26 pm
Forum: Python
Topic: Help in python coding
Replies: 11
Views: 2624

Re: Help in python coding

Anyone with suggestions? Break the problem down into small parts. Get each part working. Put the parts together. You already said you can take a picture and you can send an email. I little more Googling will tell you how to send an email with a picture as an attachment. Next, for the PIR you'll nee...
by Major Tom
Mon Nov 28, 2016 12:18 pm
Forum: Off topic discussion
Topic: Any celebrities promoting raspberry pi?
Replies: 40
Views: 9456

Re: Any celebrities promoting raspberry pi?

Raspberry Pi made a guest appearance in Mr. Robot. Does that count as celebrity promotion?
by Major Tom
Mon Nov 28, 2016 11:58 am
Forum: Staffroom, classroom and projects
Topic: My Raspberry Pi class
Replies: 48
Views: 19876

Re: My Raspberry Pi class

Well, we're about done now. Winding down for exams and Christmas. I don't know if I'll do the class next year or not. We've certainly had a lot of fun, and I have identified three students who will grow up to be hardcore geeks. My notoriety has spread far and wide and for the final six-class session...
by Major Tom
Sun Nov 27, 2016 10:25 am
Forum: Graphics, sound and multimedia
Topic: DAC vs usb soundcard
Replies: 7
Views: 7231

Re: DAC vs usb soundcard

An external USB soundcard will sound fine, and only costs $2. I am using one with Kodi (OpenELEC). I had an original Pi with OpenELEC and the built-in audio output sounded great for movies and music. The 'upgraded' audio circuit on the Pi 2 sounded awful, and it still did on the Pi 3. Recently I tri...
by Major Tom
Mon Nov 21, 2016 10:39 am
Forum: Troubleshooting
Topic: Power RasPi and servo with one source
Replies: 3
Views: 2277

Re: Power RasPi and servo with one source

Hello again, Glad to hear I was on the right track with the wiring. In general I have found red to be positive and black to be negative, but no-one is ever going to look inside the cable (right?) so the colours don't matter. Until they do. If your servo is doing a lot of work (i.e. heavy load, or a ...
by Major Tom
Sun Nov 20, 2016 12:11 am
Forum: Troubleshooting
Topic: Power RasPi and servo with one source
Replies: 3
Views: 2277

Re: Power RasPi and servo with one source

Hi all, I have a Raspberry Pi that is controlling LEDs and a servo. When I power the Pi via usb which is connected to a computer, I can control the servo directly without any problems. However, when using a separate usb adapter the Pi shuts down at the moment the servo should be turning. My conclus...
by Major Tom
Sat Nov 19, 2016 12:55 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: DS18B20 1-Wire digital thermometer on speaker cables
Replies: 3
Views: 994

Re: DS18B20 1-Wire digital thermometer on speaker cables

I have never tried the GPIO 1-wire interface in parasitic mode. I usually use three wires- 3.3V, data and GND. But this guy seems to have it working:
https://www.mkompf.com/weather/pionewiremini.html

You could easily try it and see how you get on.
by Major Tom
Sun Nov 13, 2016 7:08 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Interfacing Raspberry Pi with Arduino and power safety
Replies: 7
Views: 1764

Re: Interfacing Raspberry Pi with Arduino and power safety

The only problem you are likely to have is if you connect an Arduino pin configured as an output to the Raspberry Pi GPIO. But only if you have a 5V Arduino (which I suppose most of them are). You shouldn't drive the Pi GPIO input with a voltage greater than 3.3V as you will damage the I/O pin circu...
by Major Tom
Mon Nov 07, 2016 10:44 am
Forum: Beginners
Topic: GPS Sensor & Python
Replies: 4
Views: 2145

Re: GPS Sensor & Python

Hi there, If you want the simplest hardware then you've probably found it. Plug in the GPS into USB and it should just work. If you use the GPIO then you have to fiddle with wires and remember to buy one that uses 3.3V instead of 5V. When you plug it in then the OS will create a new serial port devi...
by Major Tom
Sun Nov 06, 2016 1:13 pm
Forum: Windows 10 for IoT
Topic: how to control “sg90” Steering engine
Replies: 4
Views: 1868

Re: how to control “sg90” Steering engine

Slight problem, pigpiod and pigpio is Linux only, it doesn't exist on Win10 IoT. You know, you're right. The sub-forum is not easily visible on the "New Posts" page. I'll double-check that next time before I post. Anyway, maybe someone can help with Win10, or maybe the original poster will try Rasp...
by Major Tom
Sun Nov 06, 2016 12:33 pm
Forum: Windows 10 for IoT
Topic: how to control “sg90” Steering engine
Replies: 4
Views: 1868

Re: how to control “sg90” Steering engine

It's a servo motor. You need to generate servo control pulses on the signal wire (orange). I recommend you start with pigpio. You can read about pigpio here: http://abyz.co.uk/rpi/pigpio/ For a quick test, start the pigpio daemon: sudo pigpiod Then use pigs to generate the servo pulses: pigs SERVO 2...
by Major Tom
Sun Nov 06, 2016 11:46 am
Forum: Python
Topic: new to python code error
Replies: 16
Views: 3420

Re: new to python code error

Bensimmo thx for clearing that out , didnt know the tabbing was a problem, pretty clear now whats with the library import sometimes its #!/bin/python or #!/usr/bin/python is this where library is installed ( prolly) but why the difference , is there a reason for it? #!/bin/python import RPI.GPIO as...
by Major Tom
Sun Nov 06, 2016 11:35 am
Forum: Automation, sensing and robotics
Topic: DC Motor Control Wiring
Replies: 9
Views: 2969

Re: DC Motor Control Wiring

Do you have a ground connection from the Pi to the motor driver?
by Major Tom
Sun Nov 06, 2016 11:31 am
Forum: Python
Topic: new to python code error
Replies: 16
Views: 3420

Re: new to python code error

Any clause following a condition, a loop, a try: or an except: must be indented by at least one space (that's why we all love Python). How anyone can design a language that relies on left hand whitespace still remains a mystery. How a language with such a restriction became popular also remains a c...
by Major Tom
Sun Nov 06, 2016 11:01 am
Forum: Python
Topic: new to python code error
Replies: 16
Views: 3420

Re: new to python code error

You have to indent the except clause because it's a code block: except KeyboardInterrupt: GPIO.output(4, GPIO.1) Some people dislike this rule, but it's no different to C, for example, that must have matching { and }. For your other question, here's a good discussion about it: http://stackoverflow.c...
by Major Tom
Sun Nov 06, 2016 10:36 am
Forum: Other projects
Topic: Pi 3 in an old laptop. Is this madness?
Replies: 18
Views: 10878

Re: Pi 3 in an old laptop. Is this madness?

I don't think so. I didn't want to show favouritism by mentioning only one auction site, and instead suggested that people are free to choose any auction site they prefer.

(Yes, I am being ironic.)
by Major Tom
Sun Nov 06, 2016 10:09 am
Forum: Other projects
Topic: Pi 3 in an old laptop. Is this madness?
Replies: 18
Views: 10878

Re: Pi 3 in an old laptop. Is this madness?

Those Synaptics touchpads are probably PS/2 only. You need to be sure you have the correct pinout, but once you have, you should be able to hack open a PS/2 to USB adapter and make it work. I found this: http://www.instructables.com/id/Turn-a-Trackpad-From-a-Broken-Laptop-into-a-PS2-M/step4/Find-Pin...
by Major Tom
Sun Nov 06, 2016 8:56 am
Forum: Other projects
Topic: Pi 3 in an old laptop. Is this madness?
Replies: 18
Views: 10878

Re: Pi 3 in an old laptop. Is this madness?

1. the touchpad - got the wiring all done (as it's supposed to be a ps/2, but as they're directly compatible i wired it straight to usb). i don't get it to be detected anywhere I think it's only backwards compatible, so you can use a USB mouse on a PS/2 port, but you can't use a ps/2 mouse directly...

Go to advanced search