Go to advanced search

by Forris
Thu Aug 08, 2019 11:59 am
Forum: Scratch
Topic: Scratch 2 GPIO pull-up & pull-down resistors
Replies: 10
Views: 1875

Re: Scratch 2 GPIO pull-up & pull-down resistors

Thanks - I think that resolves my confusion; previously we were using a third-party solution (http://simplesi.net/) and I think that initialized all pins to pull-up. Unfortunately I still haven't had any luck figuring out whether you can toggle this manually in Scratch 2. That 3rd party solution gi...
by Forris
Thu May 16, 2019 7:10 pm
Forum: Python
Topic: Python GPIO add_event_detect
Replies: 8
Views: 7022

Re: Python GPIO add_event_detect

If you're new to this, you might want to have a look at the gpiozero library: https://gpiozero.readthedocs.io/en/stable/recipes.html. It makes Python on the Pi so much simpler. It sounds like you're looking for something like this: https://gpiozero.readthedocs.io/en/stable/recipes.html#button-contro...
by Forris
Mon May 06, 2019 8:25 am
Forum: Python
Topic: Checking multiple variables
Replies: 11
Views: 585

Re: Checking multiple variables

If you used the gpiozero library instead of rpi.gpio, you could use the 'button_when_pressed' function.

See the example headed 'Run a function every time the button is pressed:' on this page,

https://gpiozero.readthedocs.io/en/stab ... tml#button
by Forris
Fri Mar 22, 2019 3:41 pm
Forum: Python
Topic: Raspberry Pi3 project using GPIO and LEDs
Replies: 21
Views: 1009

Re: Raspberry Pi3 project using GPIO and LEDs

It's great that you seem to understand the problem, and a possible solution, so let's see if I can help. Now I'm no expert on Python but the problem is that 'button.when_released = bled.on gled.on' is trying to call two functions, which can't be done on one line. The simplest way around this is to c...
by Forris
Fri Mar 22, 2019 3:13 pm
Forum: Code Club
Topic: Creating autism-friendly Code Clubs
Replies: 6
Views: 2757

Re: Creating autism-friendly Code Clubs

We have children in our code club with different learning challenges who get on really well with coding and enjoy it. The school never give me any information about a child's individual needs or offer guidance with how to manage them. I assumed this was due to child confidentiality so it's interest...
by Forris
Fri Mar 22, 2019 3:02 pm
Forum: Beginners
Topic: Raspberry Pi, Ultrasonic Sensor and mini Breadboard
Replies: 5
Views: 325

Re: Raspberry Pi, Ultrasonic Sensor and mini Breadboard

JFI, there is now a 3.3V version of these available which doesn't need the resistor divider to lower the voltage. It can just be connected straight to the Pi.

https://shop.4tronix.co.uk/products/hc- ... nce-sensor
by Forris
Thu Mar 21, 2019 3:49 pm
Forum: Beginners
Topic: Raspberry Pi, Ultrasonic Sensor and mini Breadboard
Replies: 5
Views: 325

Re: Raspberry Pi, Ultrasonic Sensor and mini Breadboard

Yep. I use mini breadboards for these. The wiring is the same. Here's a site I found that has an image of the breadboard layout for you.

http://www.makerspace-uk.co.uk/hc-sr04- ... ic-sensor/
by Forris
Tue Mar 19, 2019 8:18 pm
Forum: General discussion
Topic: GPIO Resources?
Replies: 5
Views: 370

Re: GPIO Resources?

Have you looked at the documentation for gpiozero? While the library may have been designed with beginners in mind, there's plenty of detail in the docs if you want it.

https://gpiozero.readthedocs.io/en/stable/index.html
by Forris
Mon Mar 11, 2019 1:12 pm
Forum: Python
Topic: Multiple button control
Replies: 8
Views: 657

Re: Multiple button control

You say you've tried using the gpiozero module. Can you post what you've already done , including what code you used, and what the result was. Did it work and you can't work out how to expand it, or did something go wrong. Is this the gpiozero code you tried? https://gpiozero.readthedocs.io/en/stabl...
by Forris
Sun Mar 10, 2019 9:17 am
Forum: Scratch
Topic: ScratchGPIO now supports Scratch3.0
Replies: 1
Views: 3834

ScratchGPIO now supports Scratch3.0

Simon Walters' excellent Physical Computing add-on for Scratch, ScratchGPIO, is now available for Scratch 3.0. :D :D If anyone wants to give it a try, you can install it from http://simplesi.net/s3gpio/ . If you have any questions about it, you can contact Simon via his blog or on Twitter @cymplecy
by Forris
Tue Feb 12, 2019 5:45 am
Forum: Beginners
Topic: Basic connections to GPIO pins
Replies: 21
Views: 1226

Re: Basic connections to GPIO pins

Many thanks for these replies. Lots of useful stuff here. I can see that I need to develop my knowledge and understanding of the pi and of Python considerably before I can make an informed choice of a HAT to do the things I want. There’s a massive gap between my current knowledge and the knowledge ...
by Forris
Tue Feb 12, 2019 5:41 am
Forum: Beginners
Topic: gpio zero, gpio
Replies: 2
Views: 236

Re: gpio zero, gpio

Is this what you're looking for? https://gpiozero.readthedocs.io/en/stable/index.html Btw, all of the Python/Pi Physical Computing resources on the Pi website use gpiozero, so they would be a good starting point to learn how the commands work. Here's a good one to start with: https://projects.raspbe...
by Forris
Sat Feb 09, 2019 4:05 pm
Forum: Code Club
Topic: Python after the two Code Club Python modules
Replies: 7
Views: 7200

Re: Python after the two Code Club Python modules

Yes, it's a great idea by Usborne to release those old books as PDFs. Very high nostalgia value :-)

What kit do you have available?

Are you able to install new Python libraries?

Are you keen to stick with Python, or maybe have a go at some advanced(ish) Scratch?

Where in the world are you?
by Forris
Fri Feb 08, 2019 5:39 pm
Forum: Code Club
Topic: Creating autism-friendly Code Clubs
Replies: 6
Views: 2757

Re: Creating autism-friendly Code Clubs

As a father of a kid on the autistic spectrum, I am pleased to see some people going the extra mile to accommodate kids with special needs. Congratulation to both of you !! Ben To be honest, it's been a complete revelation to me. I'm ashamed to say that, before I got involved with the school, I was...
by Forris
Wed Feb 06, 2019 4:54 pm
Forum: Code Club
Topic: Creating autism-friendly Code Clubs
Replies: 6
Views: 2757

Re: Creating autism-friendly Code Clubs

YES! And it's brilliant! I've had children in my Codeclubs that cover a wide range of additional needs since staring them over 3 years ago. The first child ,S, was someone that I knew about anyway as I knew his parents, and he became my 'right-hand man' for his final year in primary :-) The first ti...
by Forris
Wed Feb 06, 2019 4:12 pm
Forum: Code Club
Topic: Restarting my Code Club
Replies: 4
Views: 2607

Re: Restarting my Code Club

Wow! I can see how frustrating that must be for you, and how short-sighted of the school. The 'cost' excuse sounds a little flimsy to me. The cost of electricity is going to be insignificant compared with the standard school usage, and I don't understand the need for a staff cost at all. Teachers ge...
by Forris
Fri Feb 01, 2019 5:14 pm
Forum: Code Club
Topic: Python after the two Code Club Python modules
Replies: 7
Views: 7200

Re: Python after the two Code Club Python modules

Robots! Simple (& cheap) 2-wheel bots, coded in Python. I use them at KS2 (age 8-11) level and find it's a really good way of doing something cool with Python. If you have the facility, I recommend using a Pi Zero on the robot and setting that up to run 'headless' using something like RealVNC. They ...
by Forris
Wed Jan 30, 2019 7:27 pm
Forum: Beginners
Topic: Need help getting access to GPIO pins
Replies: 14
Views: 803

Re: Need help getting access to GPIO pins

Just another couple of thoughts on your code: 1. You said in your last post that you ran the code and nothing appeared on the screen. That's a good sign! You're not printing anything to the screen, just switching the gpio pins, so nothing should appear unless it is error messages. 2. I don't know wh...
by Forris
Wed Dec 05, 2018 3:11 pm
Forum: General discussion
Topic: Where to donate unused Pis?
Replies: 2
Views: 339

Re: Where to donate unused Pis?

Ask your local schools.

Might be worth contacting Codeclub (there's a forum section on here, or go to codeclub.org) to see if they can put you in touch with a club or school that would love to get their hands on some PI's.
by Forris
Sat Dec 01, 2018 6:24 pm
Forum: Python
Topic: 12V Simple Pulse detection and count on Pi3 help12
Replies: 13
Views: 1763

Re: 12V Simple Pulse detection and count on Pi3 help12

Correct me if I'm wrong, but your reason for wanting to power the sensor at 12V is that you're using a 12V supply to power the Pi? In my experience, water flow sensors aren't exactly power-hungry, so should be quite happy being powered straight from the Pi's 5V pins, which would save an awful lot of...
by Forris
Sat Dec 01, 2018 6:14 pm
Forum: General discussion
Topic: What Screen?
Replies: 6
Views: 720

Re: What Screen?

by Forris
Fri Nov 16, 2018 1:06 pm
Forum: Scratch
Topic: Problem with the GPIO extension in Stratch 2
Replies: 3
Views: 6293

Re: Problem with the GPIO extension in Stratch 2

Personally, I don't bother with the 'built-in' version of Scratch on the Pi.

I use Scratchgpio instead, as it does way more and isn't as flaky.

http://simplesi.net/scratchgpio/
by Forris
Thu Nov 15, 2018 5:13 pm
Forum: Code Club
Topic: micro:bit, NeoPixel, Blocks/Javascript and rainbox
Replies: 2
Views: 4289

Re: micro:bit, NeoPixel, Blocks/Javascript and rainbox

What 'neopixels' are you using, banburybill ? To echo what Dave said; how are you powering them ? You can run about 8 pixels straight from the Microbit, but any more than that will need an external power supply. If you're already using extra power, have you connected all three grounds (Microbit, pow...
by Forris
Wed Nov 14, 2018 9:11 pm
Forum: Code Club
Topic: What is your top tip for running a Code Club?
Replies: 5
Views: 4675

Re: What is your top tip for running a Code Club?

There's so many 'Top Tips', but my toppiest (yes, it is a real word!) tip would be; All Codeclubs are unique. What I mean by this, is that every club works differently, and what works well in one club may not work for your club. It's very easy, especially if you're on social media, to see all the am...
by Forris
Wed Nov 14, 2018 8:39 pm
Forum: Code Club
Topic: What is your top tip for running a Code Club?
Replies: 5
Views: 4675

Re: What is your top tip for running a Code Club?

We stopped using the printed Code Club projects and started using the online versions last year. No more rifling through paper versions of projects trying to find the next one fo the kids to do! We thought that the code clubbers would always be closing tabs by mistake but they picked it up straight...

Go to advanced search