This week our teams started coding their their projects for the Pioneers challenge.
The Zombie Trolls and the Zombie Herders started by playing audio for their Raspberry Pi projects using Pygame.
The green fingers spent the session trying out sensors for their Arduino based project like this DHT11 temperature and humidity sensor. They also got a soil moisture sensor and a float switch working.
We also got some great news from Twitter before the session.
Here is a picture of the mystery box.
I don’t know what the mystery is, it looks like a cardboard box to me 🙂
See you all next saturday.
Declan, Dave and Alaidh.
Hi everybody, this week we changed from preprogrammed automated robots to remote-controlled robots. We converted our simple Pygame script from last week which controlled a small rectangle on our screens so it could control our robots.
As Pygame needs a screen to operate we had to get VNC going before we could start, I think we had it working for most people by the time the session ended. VNC will be a hugh advantage to us as we start to write more code as we can use a mouse and copy and paste with a GUI text editor instead of Nano on Putty.
We also added a webcam to our robots which worked well, we would probably need to work on mounting them properly if we wanted to use them for real life applications.
Here is a video of them in action.
I will go over the code again next week, if you want to take a look at the code check out pygame_robot.py and robot_cam.py here.
We will leave robots for a while and go back to basic electronics for the next few weeks.
We had another enjoyable session this week, we especially enjoyed the drone demo by Chris Tierney.
We began our ownsession by looking at using input from our keyboard with Pygame to control our robot. We then returned to last week’s challenge, programming our robot to follow a defined path. We continued to have issues with the robots going off in arcs rather than straight line so we started to build corrections into the code. We will continue with this next week and we will learn to use functions to tell our robots what distance we want them to travel or the angle we want them to turn instead of using times to control them.
Here are my notes from today pygame robot and our code is available here
For more on Pygame there’s a very good tutorial here