I've had my raspberry pi for over 6 months now and have been learning python as well as how computers work and linux. I've yet to get into working with the GPIO and have been reluctant to so. This is mainly because of the lack of things I could do with it (I'm 14) . I don't really want to spend £20 quid on a breadboard, cables, etc. just to turn lights on and off and read buttons. I was thinking of idea's to make this more fun when I came up with the idea for a (obviously simplified) virtual nuclear reactor python library. The idea is that you have to generate the most electricity as you can without the reactor overheating using the GPIO to add safe guards to the system for example if the heat gets higher then 60% activate a buzzer and flash LEDs or have an "emergency stop" button to shut down the reactor. The more electricity you generate the more money you get to buy more parts for the reactor or add "sensors" to read the temperature more accurately or have a quicker emergency shut down.
However being only 14 I have no time to manage a project like this and i thought I would share this idea on the forum if someone would like to use it.
Example Code :
- Code: Select all
import reactor # imports the library
reactor.start() # Starts the reactor
reactor.stop() # Stops the reactor safely (takes time)
reactor.emergencyStop() # Stops the reactor quicker but less safe (buy quicker cool down times)
# Other functions could set the power of the reactor and life of cells etc. (Unsure of technical terms my reactor knowledge only comes from IndustrialCraft :) )
reactor.readHeat() # returns the reactors heat (buy more accurate thermometer)
reactor.Shop.listItems() # lists shops items
reactor.Shop.buy(item) # buys the item
reactor.Shop.search(string) # searches for an item
Thank you for your time sorry if this is posted in the wrong section and please excuse my noobness.