Go to advanced search

by Orange
Wed Feb 27, 2019 7:44 am
Forum: Staffroom, classroom and projects
Topic: Raspberry Pi for Primary School Children
Replies: 11
Views: 13488

Re: Raspberry Pi for Primary School Children

I don't know if this is any use to you but I wrote a simple scripting language aimed at primary school children which is very easy to install. The scripts can be very simple (just a few lines) but can do some complex things. This is an example script: # This script demonstrates multi-tasking. # # It...
by Orange
Fri Oct 07, 2016 7:20 am
Forum: Other projects
Topic: Floppy Drive Music
Replies: 14
Views: 13217

Re: Floppy Drive Music

Sorry, I should have given instructions on how to compile the above code. Paste the source code into a file called floppymusic.c using nano, then compile it using this command: gcc -o floppymusic -std=c99 -lwiringPi floppymusic.c This creates an executable file called floppymusic. To run it just typ...
by Orange
Tue Aug 11, 2015 10:31 am
Forum: Other projects
Topic: Floppy Drive Music
Replies: 14
Views: 13217

Re: Floppy Drive Music

Sorry for reviving this old thread, but while studying your source code, I noticed that you use the following formula to determine the delay between to motor pulses: /** * Frequency (in Hz) is converted to Floppy Delay using the formula: * 314000 / frequency = floppy delay * so middle A = 314000 / ...
by Orange
Mon Jan 05, 2015 11:43 am
Forum: Other projects
Topic: Floppy Drive Music
Replies: 14
Views: 13217

Re: Floppy Drive Music

Sorry about that, not sure how it happened. I've fixed the original code now so comments are correctly marked with /* ... */
by Orange
Thu May 22, 2014 6:55 am
Forum: Teaching and learning resources
Topic: Pioscript - A GPIO Scripting Language for the Raspberry Pi
Replies: 1
Views: 2700

Re: Pioscript - A GPIO Scripting Language for the Raspberry

After some excellent primary school feedback Pioscript has gone through some extensive changes and is now simpler to install, simpler to use (from the GUI) and includes some simplified instructions for people who are using a Pibrella. It can be installed by running the following two commands on your...
by Orange
Sun May 11, 2014 11:40 am
Forum: General discussion
Topic: Analog audio and hardware PWM
Replies: 14
Views: 2878

Re: Analog audio and hardware PWM

That's an interesting solution.
I tried it but still no joy. ALSA still hangs after I run it.
by Orange
Sun May 11, 2014 8:46 am
Forum: General discussion
Topic: Analog audio and hardware PWM
Replies: 14
Views: 2878

Re: Analog audio and hardware PWM

Ok, I tried: rmmod snd_soc_bcm2708_i2s rmmod snd_usb_audio rmmod snd_hwdep rmmod snd_bcm2835 rmmod snd_usbmidi_lib rmmod snd_seq_midi rmmod snd_seq_midi_event rmmod snd_rawmidi rmmod regmap_mmio rmmod snd_soc_core rmmod regmap_spi rmmod snd_pcm rmmod snd_page_alloc rmmod regmap_i2c rmmod snd_compres...
by Orange
Sun May 11, 2014 8:12 am
Forum: General discussion
Topic: Analog audio and hardware PWM
Replies: 14
Views: 2878

Re: Analog audio and hardware PWM

Thanks. I'll give that a try and let you know if it works.
by Orange
Sun May 11, 2014 6:24 am
Forum: General discussion
Topic: Analog audio and hardware PWM
Replies: 14
Views: 2878

Analog audio and hardware PWM

After I use hardware PWM I find I cannot get any sound out of the audio jack until I reboot the Pi. Does anybody know how to reset the audio without rebooting?
by Orange
Wed May 07, 2014 9:25 pm
Forum: General discussion
Topic: Sounds Music and GPIO together
Replies: 7
Views: 2353

Re: Sounds Music and GPIO together

Recording, playing back recordings and saving them to wav files is now all incorporated into pioscript. I just need to add the triggering and then I'll upload a new version of pioscript to github.
by Orange
Mon May 05, 2014 6:38 am
Forum: Teaching and learning resources
Topic: Pioscript - A GPIO Scripting Language for the Raspberry Pi
Replies: 1
Views: 2700

Pioscript - A GPIO Scripting Language for the Raspberry Pi

Watch a video demonstration of pioscript here: http://youtu.be/078fXcP3jSI Source available here: https://github.com/scott-vincent/pioscript Pioscript is a script interpreter for the Raspberry Pi that sits somewhere between ScratchGPIO and Python. It is aimed at primary school children who want to p...
by Orange
Mon May 05, 2014 6:11 am
Forum: General discussion
Topic: Pioscript - A GPIO Scripting Language for the Raspberry Pi
Replies: 1
Views: 456

Pioscript - A GPIO Scripting Language for the Raspberry Pi

Watch a video demonstration of pioscript here: http://youtu.be/078fXcP3jSI Source available here: https://github.com/scott-vincent/pioscript Pioscript is a script interpreter for the Raspberry Pi that sits somewhere between ScratchGPIO and Python. It is aimed at primary school children who want to p...
by Orange
Sun May 04, 2014 12:59 pm
Forum: General discussion
Topic: Sounds Music and GPIO together
Replies: 7
Views: 2353

Re: Sounds Music and GPIO together

I've done some tests with an old webcam (with built-in mic) plugged into a USB port on the Pi and I've got portaudio working with it fine. I can now record a 44.1 KHz mono sample using the portaudio library and can play it back in stereo using the sdl_mixer library. This is all from a C++ program. N...
by Orange
Fri May 02, 2014 5:42 am
Forum: General discussion
Topic: Sounds Music and GPIO together
Replies: 7
Views: 2353

Re: Sounds Music and GPIO together

Hi Kerry, I have now renamed my program pioscript and you can download it from here: https://github.com/scott-vincent/pioscript It will do the sound and servo part of your project but doesn't support microphone input although that sounds like a great idea for an enhancement. I was already about to t...
by Orange
Mon Apr 14, 2014 5:04 am
Forum: Other projects
Topic: Floppy Drive Music
Replies: 14
Views: 13217

Re: Floppy Drive Music

I'm not sure I understand what you're trying to do. The whole point of this project is that it uses the GPIO pins on the Pi. If you build and run the binary on a Windows machine how is it supposed to control the GPIO pins on the Pi?
by Orange
Thu Apr 10, 2014 10:04 pm
Forum: General discussion
Topic: Diorama Scripting Language
Replies: 5
Views: 1774

Re: Diorama Scripting Language

Hi Steve I definitley think its the word "diorama" :) I've never heard of it :) Also, lack of any link to try it out might also have some influence on lack of uptake :) Simon Ah, I posted the link for people to try it out on my other post here: http://www.raspberrypi.org/forums/viewtopic.php?f=63&t...
by Orange
Thu Apr 10, 2014 9:43 pm
Forum: Other projects
Topic: Floppy Drive Music
Replies: 14
Views: 13217

Re: Floppy Drive Music

What IDE did you use? I am getting a lot of compilation errors using CodeBlocks, and I have already specified the necessary dependencies for WiringPi libraries. The compilation errors I am getting are basic code logic/structure problems (infinite for loops, redefining variables, etc.) I didn't use ...
by Orange
Sun Apr 06, 2014 7:25 am
Forum: General discussion
Topic: Music on the Pibrella
Replies: 0
Views: 490

Music on the Pibrella

My wife bought 3 Pibrellas for her primary school and I'm impressed with how easy they are to use. They work really well with ScratchGPIO and the kids love programming them. I found that for playing songs through the buzzer ScratchGPIO was ok but wasn't brilliant (well it is a buzzer after all). I d...
by Orange
Mon Mar 31, 2014 5:29 am
Forum: General discussion
Topic: I made a Raspberry Pi smoke machine, oops!
Replies: 7
Views: 1822

Re: I made a Raspberry Pi smoke machine, oops!

accident? you overvolted the motor of a small toy racetrack motor so much that it started to smoke, ten seconds later you turned the voltage up a few notches higher, then to the max up, al the way you filmed yourself doing it. accident?! I couldn't tell! :roll: but it was amusing to watch while it ...
by Orange
Sun Mar 30, 2014 1:49 pm
Forum: General discussion
Topic: I made a Raspberry Pi smoke machine, oops!
Replies: 7
Views: 1822

I made a Raspberry Pi smoke machine, oops!

The ending is the best when the motor decides to run away! I panicked and pulled the wires!
That chunky transistor was nice and toasty after that!

https://plus.google.com/110265018208679 ... oBxsKrhVFr
by Orange
Fri Mar 28, 2014 3:00 pm
Forum: Graphics programming
Topic: How To Install & Use SDL2 on Raspbian PI
Replies: 22
Views: 48266

Re: How To Install & Use SDL2 on Raspbian PI

Extremely useful post. Saved me a lot of time.

Thanks
by Orange
Wed Mar 19, 2014 5:15 pm
Forum: General discussion
Topic: Pi Powered Mini Disco
Replies: 2
Views: 702

Re: Pi Powered Mini Disco

I've completed the readme and install script for this project now so I'm including a link to download it in case anybody wants to have a play. The install script installs all required pre-requisites either from the included package or via apt-get so it's very simple to set up. Here is the readme whi...
by Orange
Mon Mar 17, 2014 10:23 pm
Forum: General discussion
Topic: Pi Powered Mini Disco
Replies: 2
Views: 702

Pi Powered Mini Disco

Doesn't come out too well on my phone's video camera but hopefully you get the idea: https://plus.google.com/110265018208679745029/posts/HCZYXjunfCQ The speakers are also a bit tinny when connected to the Pi. They sound much better on the PC. This is the script that runs the light show in the video:...
by Orange
Tue Mar 11, 2014 11:23 am
Forum: General discussion
Topic: Sounds Music and GPIO together
Replies: 7
Views: 2353

Re: Sounds Music and GPIO together

I went ahead and developed a scripting language for Cédric and he is currently testing it. When we've ironed out the last few bugs I will be happy to release the program as open source. In the meantime, if anybody else wants to test it please pm me. There is more info on what I have developed here: ...
by Orange
Tue Mar 11, 2014 10:50 am
Forum: General discussion
Topic: Diorama Scripting Language
Replies: 5
Views: 1774

Re: Diorama Scripting Language

No interest at all? I'm shocked. Maybe my use of the word diorama has put people off. This can be used to control anything where you have any mix of switches, servos, LED's (with variable brightness support) and sound samples. You can develop scripts using a simple text editor and run them direct fr...

Go to advanced search