Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Raspberry Pi  (Read 109 times)

Nightcore Angel

  • Bay Watcher
  • Noice! Now, keel over and DIE!!!
    • View Profile
Raspberry Pi
« on: April 21, 2017, 10:06:48 am »

So the story starts with me recently got into learning C#, ive played computer games since like...2.5 Years old? I thought its high time i grew up and start exploring further. One day, I was talking with my friend about the difference and similarity of C# and Python, until he brings up to me about this curious device, Raspberry Pi, he told me that its a cheap and compact computer that people often use for DIY projects, i told my dad about it, and he was like "oh wow son, this is interesting, you know, you learn programming, maybe you could make something with this" so he told me to buy it.

So my question is..."Where to start?" and "What kind of skill and/or knowledge do i need to have for me to use RB Pi"
I know you might say that it depends on what im making or plan to use-and i know it kinda is, but im more keen on finding the answer "how to use this thing?". For starters, i know you need to learn python to make a program and run the hardware its attached, be it an RC drone, a coffee machine or a sun-tracking solar panel, etc... then there was the actual thing...i dont know anything about wiring, electricity/electrician, I/O (heck, i dont even know what I/O means-i just saw some diagrams the other day about all the available I/O slot the RB Pi has, and i understand none of them)...

So anyone knows anything, please tell me, i too am in the process of researching about this.
Thx for your help in advance

-Nightcore Angel
Logged

Khan Boyzitbig

  • Bay Watcher
  • [THOUGHTS:CHAOTIC]
    • View Profile
Re: Raspberry Pi
« Reply #1 on: April 21, 2017, 10:24:48 am »

I/O is usually Input/Output.

Wiring is tricky and will greatly depend on what you want to wire, generally its just connect a - b.
Its been a while since I used one but as long as you don't overload stuff (do not wire a 3v bulb to a 12v supply unless you like to ruin stuff violently) it should get easier from experience. Also be aware that motors can cause troubles with other parts of the Pi, not 100% sure what causes it (could be EMP or just vibration or something else) or 100% sure what the results will be.

They are nifty little devices though and a good way to learn how electrical engineering can work with software engineering.
Logged
////;::;\\\\ Scuttle Scuttle...

Milk for the Khorneflakes!

Sinned

  • Bay Watcher
  • <Intentionally left blank>
    • View Profile
Re: Raspberry Pi
« Reply #2 on: April 21, 2017, 12:15:46 pm »

Never bad to pickup some python while you are at it.

It's a bit harder to tell you "where to start", don't know how comfortable you are with linux. These days  the raspberry pi can run more demanding OS's more easily then the first batch.

What I wanted to point out, and you might already have known, don't forget about Mono (http://www.mono-project.com/) ... you can use your C# skills to develop on it also. Many linux distro's have packages for it.

Still, python, good pickup...

* https://learnpythonthehardway.org/book/ (Basics)
* https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world  (MVC - if you are interested in these)

Many other resources are out there. And yes, python runs fine on windows also...
« Last Edit: April 21, 2017, 12:26:36 pm by Sinned »
Logged
When you find yourself in the company of a dwarf and an ill-tempered Dragon, remember, you do not have to outrun the Dragon... just the dwarf.

TheBiggerFish

  • Bay Watcher
  • If you want to talk about anything, you can PM me.
    • View Profile
Re: Raspberry Pi
« Reply #3 on: April 21, 2017, 09:02:08 pm »

And if you feel like game dev'ing, there are a lot of things out there in C#.
Logged
Sigtext
RIP Spearbreakers, may your !!SHENANIGANS!! return sometime soon.
It has been determined that Trump is an average unladen swallow travelling northbound at his maximum sustainable speed of -3 Obama-cubits per second in the middle of a class 3 hurricane.

Nightcore Angel

  • Bay Watcher
  • Noice! Now, keel over and DIE!!!
    • View Profile
Re: Raspberry Pi
« Reply #4 on: April 22, 2017, 12:00:50 am »

Ah, ok, thx guys, thats interesting to know.
And if you feel like game dev'ing, there are a lot of things out there in C#.
Yeah, so i heard with Java and C++.

I/O is usually Input/Output.

Wiring is tricky and will greatly depend on what you want to wire, generally its just connect a - b.
Its been a while since I used one but as long as you don't overload stuff (do not wire a 3v bulb to a 12v supply unless you like to ruin stuff violently) it should get easier from experience. Also be aware that motors can cause troubles with other parts of the Pi, not 100% sure what causes it (could be EMP or just vibration or something else) or 100% sure what the results will be.

They are nifty little devices though and a good way to learn how electrical engineering can work with software engineering.
Yeah, this is one of those things i know i need to be aware of but not actually know what it is, i do know you need to have a transformer when dealing with different  currents, but thats all i remember from my physics class, i even forgot the calculation for it.

Never bad to pickup some python while you are at it.

It's a bit harder to tell you "where to start", don't know how comfortable you are with linux. These days  the raspberry pi can run more demanding OS's more easily then the first batch.

What I wanted to point out, and you might already have known, don't forget about Mono (http://www.mono-project.com/) ... you can use your C# skills to develop on it also. Many linux distro's have packages for it.

Still, python, good pickup...

* https://learnpythonthehardway.org/book/ (Basics)
* https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world  (MVC - if you are interested in these)

Many other resources are out there. And yes, python runs fine on windows also...
Thx for the link, will look through these.
Logged

wierd

  • Bay Watcher
  • I like to eat small children.
    • View Profile
Re: Raspberry Pi
« Reply #5 on: April 22, 2017, 06:36:22 am »

Depending on the stack that you use to enable access to the gpios, accessing the pins states (both read and write) can be as easy as a simple filesystem read, because the states are represented on the /sys/gpio device block.

This means that you can easily monitor and control the pins to do a wide assortment of simple tasks, even just from a shell script.
Logged

Reudh

  • Bay Watcher
  • Perge scelus mihi diem perficias.
    • View Profile
Re: Raspberry Pi
« Reply #6 on: April 23, 2017, 12:55:30 am »

A simple and easy project to just get started with how the Pi works would be making yourself an OSMC (open source media centre) system, or something like Retropie chock full of emulators. Neither require insane amounts of technical prowess, have some level of configuration required, and produce a pretty cool little talking point as the end product of the project. Once you make those, you could do something more complex by writing a program in Python. There's a video of a bloke who automated most of his home by singing to it with an ocarina.