Puppi Raspberry Pi Hardware

News, happenings
Message
Author
aarf

#346 Post by aarf »

antiloquax wrote:
I went and bought a breadboard and some LEDs yesterday. But I forgot to take the magazine with me. I'll have to go back for some resistors etc. Maplins has what you need!
:)
question from someone who has no clue (me):
can all/some of the scripts that have been written for arduino be somehow used on raspberry? I mean the ones that have only to use a lesser amount of pins.
or perhaps arduino can be joined to raspberry and programmed in conjunction. like I said I don't know anything just exploring possiblities.

User avatar
antiloquax
Posts: 405
Joined: Fri 27 Jan 2012, 09:17

#347 Post by antiloquax »

aarf wrote: question from someone who has no clue (me):
can all/some of the scripts that have been written for arduino be somehow used on raspberry? I mean the ones that have only to use a lesser amount of pins.
or perhaps arduino can be joined to raspberry and programmed in conjunction. like I said I don't know anything just exploring possiblities.
Sorry, I don't know either. Although, I have heard Eben talking about linking up Arduino and RPi - that does work.
mark
My System:Arch-Arm on RPi!
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.

aarf

#348 Post by aarf »

antiloquax wrote:
aarf wrote: question from someone who has no clue (me):
can all/some of the scripts that have been written for arduino be somehow used on raspberry? I mean the ones that have only to use a lesser amount of pins.
or perhaps arduino can be joined to raspberry and programmed in conjunction. like I said I don't know anything just exploring possiblities.
Sorry, I don't know either. Although, I have heard Eben talking about linking up Arduino and RPi - that does work.
mark
here is the arduino code and instructions for blinking your first LED
http://arduino.cc/en/Tutorial/Blink
don't know if it any use to you.
to get the arduino gui to work on puppy it needs java installed, so far I have not been able to determine if there is a java compatible with both puppy and arm together.

User avatar
antiloquax
Posts: 405
Joined: Fri 27 Jan 2012, 09:17

#349 Post by antiloquax »

Thanks aarf! I'll check it out.
mark

EDIT
I'm sorry I won't be able to help darkcity out - I'd already offered my spare Pi to Jaseman (of the MagPi magazine), and he's confirmed he does want it.

EDIT (again)
Thought I'd post a couple of pics of my Pi setup (this actually isn't in my room - it's just where I can get hooked up to ethernet!).
My System:Arch-Arm on RPi!
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.

User avatar
antiloquax
Posts: 405
Joined: Fri 27 Jan 2012, 09:17

#350 Post by antiloquax »

Here's my first proper assembly program (I wrote this myself, rather than copying from websites!)
It finds the Greatest Common Divisor of 6099 and 2166. See Knuth, The Art of Computer Programming (3rd ed.) page 4.

Code: Select all

 .section    .data

string:
    .asciz "Euclid's Algorithm: Greatest Common Divisor\n"
len = . - string
result:
    .asciz "Result: %d\n"
m:
    .long   6099
n:
    .long   2166

.text
    .globl  main

main:
    mov r0, $1
    ldr r1, =string
    ldr r2, =len
    mov r7, $4
    swi $0

    ldr r5, =m
    ldr r2, [r5], $4

    ldr r5, =n
    ldr r3, [r5], $4

loop:
    sub r4, r2, r3
    cmp r4, r3
    movge   r2, r4
    bge     loop

    cmp r4, $0
    movgt r2, r3
    movgt r3, r4
    bgt     loop

    mov   r1, r3
    ldr r0, =result
    bl printf
    mov r7, $1
    swi 0

I've had some help from someone on the RPi forum. Still lots to learn ...
My System:Arch-Arm on RPi!
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#351 Post by Lobster »

Thanks Mark for assembly coding and pics.

Many years ago, whilst looking at the great variety of Linux, I found there was a great expectation that I had experience and knowledge of Unix, command line, compiling and other geekery.
I did not. I was a noob.

Even though I was using Knoppix/Debian at the time, I was using Puppy to educate myself. I was a noob and lurker.

We are beginning again. Raw hardware - Raspberry Pi does not even come with a case . . .
This time we are in company with over a quarter of a million penguins and those undergoing penguination.

Imagine what an army of geeks can accomplish and pass on to the geek youth . . . :D

It is hard going. I may have to buy yet another SD card. I may have to compile in C (or try to).

Barry is now compiling native Gentoo code on the Rpi
http://www.raspberrypi.org/phpBB3/viewt ... 7&start=50
. . . then with sufficient pets we will have a boot strapped Puppi :)

Puppi Linux
Raspberry Rippling
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
antiloquax
Posts: 405
Joined: Fri 27 Jan 2012, 09:17

#352 Post by antiloquax »

I am still struggling with how to print a single digit (I want to do it just from the ascii value so that I can do maths without using printf)..

Anyway ... I have overclocked my Pi. I got a kernel panic when I took it to 900mhz, but 850 seems fine (default is 700).
:twisted:
My System:Arch-Arm on RPi!
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#353 Post by Lobster »

Apparently you can also over volt and that gets the speed up. I won't be doing it . . .
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
antiloquax
Posts: 405
Joined: Fri 27 Jan 2012, 09:17

#354 Post by antiloquax »

I've brought my RPi into school today and hooked it up to the data projector. I did a lesson on a little GUI program based on the "Love-o-matic" iPod app.
Some of the kids were fascinated but others laughed at my Lego case.
Attachments
love.PNG
(10.81 KiB) Downloaded 697 times
My System:Arch-Arm on RPi!
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#355 Post by darkcity »

antiloquax wrote:I am still struggling with how to print a single digit (I want to do it just from the ascii value so that I can do maths without using printf)..
...
On Risc OS you would use a system call 'SWI', don't know if there's an linux equivalent?

http://www.apdl.co.uk/riscworld/volume1 ... /index.htm

User avatar
antiloquax
Posts: 405
Joined: Fri 27 Jan 2012, 09:17

#356 Post by antiloquax »

darkcity wrote:On Risc OS you would use a system call 'SWI', don't know if there's an linux equivalent?
Thanks, darkcity. Yes, I have been using SWI - the problem I have been having is that I can print a string, but I want to print individual characters.

I want to be able to print numbers without using the C printf command.
So I need to convert the number to a series of ascii characters and then output those.
Anyway, it'll keep me out of trouble for a while ...

By the way, I'm sorry I wasn't able to supply you with my spare Pi. By the time Lobster mentioned it, I'd already promised it to someone else!
mark
My System:Arch-Arm on RPi!
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#357 Post by darkcity »

antiloquax wrote:...

By the way, I'm sorry I wasn't able to supply you with my spare Pi. By the time Lobster mentioned it, I'd already promised it to someone else!
mark
That's kind of you to think about me. I'll get some pi in the long run

; -)

User avatar
greengeek
Posts: 5789
Joined: Tue 20 Jul 2010, 09:34
Location: Republic of Novo Zelande

#358 Post by greengeek »

Antiloquax - 88% ?? Surely it's more than that! :-)
You must have read the number upside down. It should be 88
Oh, wait...

User avatar
antiloquax
Posts: 405
Joined: Fri 27 Jan 2012, 09:17

#359 Post by antiloquax »

:)
My System:Arch-Arm on RPi!
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#360 Post by Lobster »

Guys,

Stay fruity. Our slice of pi will come 8)
To answer some questions . . .
Java not yet available but coming
Arduino controller link up being planned, using pi to control several Arduino . . .

Will not get chance to work on c code for gtkdialog until coming weekend.

Kids laughing = good
Some fascinated = potential geeks/penguins/puppy's = v good :)
SD cards are either rubbish OR work and our booting experience will develop

Guys with Rpi . . . Worried about security? Me not - run as root, run fast.
A few days ago couple of Xbox users :evil: tried to jemmy open my front door. :roll:
Will be working towards Rpi lasering or other device. legal suggestions welcome . . . Dog barking motion detectors . . . Flash and pic taking . . . Police dial panic button . . . 'release the hounds' button . . .

My case is now from small blueberry packaging
:)
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

User avatar
antiloquax
Posts: 405
Joined: Fri 27 Jan 2012, 09:17

#361 Post by antiloquax »

Lobster wrote: SD cards are either rubbish OR work
I have managed to get my 8 gb Sandisk Extreme Pro (class 10) card to boot. It wouldn't work when I last tried - I think the latest firmware updates have sorted out the problems.

I've also managed to get Scratch working on Arch. It's a total hack - I just copied the files from the Debian image. It does work (although no sound atm).
mark
My System:Arch-Arm on RPi!
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.

User avatar
puppy_apprentice
Posts: 299
Joined: Tue 07 Feb 2012, 20:32

#362 Post by puppy_apprentice »

i was thinking about making box for RPi from plastic soap box

something like this one:
http://www.longsure.net/product_7831_pl ... p_box.html

what u think?

User avatar
antiloquax
Posts: 405
Joined: Fri 27 Jan 2012, 09:17

#363 Post by antiloquax »

I've been playing around with the set-up of my Pi again today.
I'd read about the slow read/write speeds using the sd card slot. I am now just using the boot partition on the card and my file-system is on a usb. I'm not convinced it's made much of a difference tbh.

I've also been having a go with Openbox instead of twm. That seems to work nicely.
mark
My System:Arch-Arm on RPi!
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#364 Post by darkcity »

puppy_apprentice wrote:i was thinking about making box for RPi from plastic soap box

something like this one:
http://www.longsure.net/product_7831_pl ... p_box.html

what u think?
seems like a good idea, should be easy to cut holes, I'm hoping to reuse something
Image

User avatar
puppy_apprentice
Posts: 299
Joined: Tue 07 Feb 2012, 20:32

#365 Post by puppy_apprentice »

this trailer is probably a little too big for RPi :lol:

Post Reply