HolyGuacamole
Posts: 15
Joined: Sat Dec 20, 2014 10:22 am

Getting started with the A+

Sat Dec 20, 2014 11:14 am

Hello Internet,

I've got the raspberry A+. I want to try out the GPIO pins using the python programming language.
The A+ has only one usb port, to which I have attached a keyboard.
Because the lack of mouse, the Pi is set up to boot into the terminal.
From here I would like to write scripts/programs in python.
What programs are available for this :?: (that don't require a mouse)

Thanks in advance!

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26716
Joined: Sat Jul 30, 2011 7:41 pm

Re: Getting started with the A+

Sat Dec 20, 2014 11:17 am

I'm no python expert, but you can simple type python and you will get in to the command line.

Or you can use an editor such as nano to create Python programs, the run them directly from the shell command line using python <filename>

Check out some of the Python tutorial on the web
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

drgeoff
Posts: 10831
Joined: Wed Jan 25, 2012 6:39 pm

Re: Getting started with the A+

Sat Dec 20, 2014 11:56 am

If you are near a Poundland (or equivalent) try one of the cheapo USB hubs so you can have keyboard and mouse on your A+. If it doesn't work you haven't broken the bank.
Quis custodiet ipsos custodes?

HolyGuacamole
Posts: 15
Joined: Sat Dec 20, 2014 10:22 am

Re: Getting started with the A+

Sat Dec 20, 2014 12:05 pm

jamesh wrote:I'm no python expert, but you can simple type python and you will get in to the command line.

Or you can use an editor such as nano to create Python programs, the run them directly from the shell command line using python <filename>

Check out some of the Python tutorial on the web
Thanks! nano is exactly what I was looking for. :D

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Getting started with the A+

Sat Dec 20, 2014 12:20 pm

drgeoff wrote:If you are near a Poundland (or equivalent) try one of the cheapo USB hubs so you can have keyboard and mouse on your A+. If it doesn't work you haven't broken the bank.
A cheapo hub is essential when you'll normally have three USB devices to connect to your A+ (keyboard, mouse & WiFi dongle).

The puzzling part is why the OP got an A+ and not a B+. The A+ (at 65mm * 56mm, 23g mass and with just 256MB) isn't intended for general purpose use, it's meant for specialist projects (robots, balloons to 40Km, drone aircraft, etc.) where mass and available space constrains the project to the smallest possible Raspberry Pi but the computing requirements outstrip things like Arduinos.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

mikerr
Posts: 2827
Joined: Thu Jan 12, 2012 12:46 pm
Location: UK
Contact: Website

Re: Getting started with the A+

Sat Dec 20, 2014 12:35 pm

DougieLawson wrote: The puzzling part is why the OP got an A+ and not a B+. The A+ (at 65mm * 56mm, 23g mass and with just 256MB) isn't intended for general purpose use, it's meant for specialist projects (robots, balloons to 40Km, drone aircraft, etc.) where mass and available space constrains the project to the smallest possible Raspberry Pi but the computing requirements outstrip things like Arduinos.
The A+ is fine for standalone use without a hub if you don't need wifi.
-there is a bit of an obsession nowadays that everything has to have a network/internet connection
The key is using a combined keyboard/mouse dongle, so you only use a single usb.

Saving stuff to /boot would enable file transfer (pity it isn't bigger by default).

Yes, a B+ is far more flexible, but it's a bit strong to say an A+ is only for embedded!
Android app - Raspi Card Imager - download and image SD cards - No PC required !

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Getting started with the A+

Sat Dec 20, 2014 12:47 pm

mikerr wrote: Saving stuff to /boot would enable file transfer (pity it isn't bigger by default).
That's not the intended use of /boot and you can't pull the SDCard from a running system.

Having some form of networking (USB or, in my case, SPI) is essential in the development phase (how frustrated are you going to be when you find that software package you'd like to use is missing). Networking is also essential to keep installed firmware and packages updated.

If I were writing stuff for a (robot or suchlike) project built around an A+ I'd use a fully fledged B+ as the development system and swap/clone the SDCard to the A+ when the code was debugged and ready to go.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

BMS Doug
Posts: 3824
Joined: Thu Mar 27, 2014 2:42 pm
Location: London, UK

Re: Getting started with the A+

Sat Dec 20, 2014 1:35 pm

DougieLawson wrote: If I were writing stuff for a (robot or suchlike) project built around an A+ I'd use a fully fledged B+ as the development system and swap/clone the SDCard to the A+ when the code was debugged and ready to go.
I agree with Dougie, for making your first robot project you'll need ethernet to download packages, either the B+ or a USB hub will be essential for playing around with.
Doug.
Building Management Systems Engineer.

HolyGuacamole
Posts: 15
Joined: Sat Dec 20, 2014 10:22 am

Re: Getting started with the A+

Sat Dec 20, 2014 8:12 pm

I bought an a+ because I liked how tiny it was :roll: .
Normally I overthink on every decision, this time I just ordered the a+ because it looks kinda funny.

At first I was kind of confused on how to use it with only one usb port.
Now it works great when I avoid GUI's and just do everything with command line.

And why would I need internet on a raspberry pi?
downloading packages directly would be convenient, but besides that?

And what is the point of updating firmware or packages?

User avatar
rpdom
Posts: 17275
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: Getting started with the A+

Sat Dec 20, 2014 8:29 pm

HolyGuacamole wrote:And what is the point of updating firmware or packages?
Well, that depends on your usage.

If it works, don't break it ;)

But sometimes there are important bug fixes or additional features in updates.

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Getting started with the A+

Sat Dec 20, 2014 8:33 pm

HolyGuacamole wrote: And what is the point of updating firmware or packages?
So every time you find a bug you're going to start with a fresh install of Raspbian on a reformatted SDCard. That will get extremely tedious very quickly.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

fruitoftheloom
Posts: 23549
Joined: Tue Mar 25, 2014 12:40 pm
Location: Delightful Dorset

Re: Getting started with the A+

Sat Dec 20, 2014 8:54 pm

Rather than negativity think outside the box !
RPi 4B 4GB (SSD Boot) RaspiOS64 ARM64
Asus ChromeBox 3 Celeron is my other computer...

User avatar
DougieLawson
Posts: 39304
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Getting started with the A+

Sat Dec 20, 2014 10:38 pm

fruitoftheloom wrote:This is good peripheral for the A+

http://swag.raspberrypi.org/collections ... fi-adaptor
If I were starting from scratch never having had any RPi before that would be on my shopping list.

Combine that with a combined keyboard/mouse and you're good to go.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

Return to “Beginners”