Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 27 Nov 2014, 07:53
All times are UTC - 4
 Forum index » Taking the Puppy out for a walk » Announcements
Puppi Raspberry Pi Hardware
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 24 of 31 Posts_count   Goto page: Previous 1, 2, 3, ..., 22, 23, 24, 25, 26, ..., 29, 30, 31 Next
Author Message
aarf

Joined: 30 Aug 2007
Posts: 3620
Location: around the bend

PostPosted: Wed 06 Jun 2012, 06:37    Post_subject:  

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!
Smile

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.

_________________

ASUS EeePC Flare series 1025C 4x Intel Atom N2800 @ 1.86GHz RAM 2063MB 800x600p ATA 320G
_-¤-_

<º))))><.¸¸.•´¯`•.#.•´¯`•.¸¸. ><((((º>
Back to top
View user's profile Send_private_message Visit_website 
antiloquax


Joined: 27 Jan 2012
Posts: 405

PostPosted: Wed 06 Jun 2012, 06:48    Post_subject:  

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!
"RacyPy" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
RaspberryPy: Lobster and I blog about the RPi.
Back to top
View user's profile Send_private_message 
aarf

Joined: 30 Aug 2007
Posts: 3620
Location: around the bend

PostPosted: Wed 06 Jun 2012, 07:35    Post_subject:  

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.

_________________

ASUS EeePC Flare series 1025C 4x Intel Atom N2800 @ 1.86GHz RAM 2063MB 800x600p ATA 320G
_-¤-_

<º))))><.¸¸.•´¯`•.#.•´¯`•.¸¸. ><((((º>
Back to top
View user's profile Send_private_message Visit_website 
antiloquax


Joined: 27 Jan 2012
Posts: 405

PostPosted: Wed 06 Jun 2012, 09:27    Post_subject:  

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!).
RPi2.png
 Description   
 Filesize   199.82 KB
 Viewed   937 Time(s)

RPi2.png

RPi1.png
 Description   
 Filesize   300.26 KB
 Viewed   931 Time(s)

RPi1.png


_________________
My System:Arch-Arm on RPi!
"RacyPy" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
RaspberryPy: Lobster and I blog about the RPi.
Back to top
View user's profile Send_private_message 
antiloquax


Joined: 27 Jan 2012
Posts: 405

PostPosted: Thu 07 Jun 2012, 05:24    Post_subject:
Sub_title: ASM
 

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:
 .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!
"RacyPy" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
RaspberryPy: Lobster and I blog about the RPi.
Back to top
View user's profile Send_private_message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Fri 08 Jun 2012, 18:22    Post_subject:  

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 . . . Very Happy

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/viewtopic.php?f=54&t=707&start=50
. . . then with sufficient pets we will have a boot strapped Puppi Smile

Puppi Linux
Raspberry Rippling

_________________
Puppy WIKI
Back to top
View user's profile Send_private_message Visit_website 
antiloquax


Joined: 27 Jan 2012
Posts: 405

PostPosted: Sat 09 Jun 2012, 10:58    Post_subject:  

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 Evil

_________________
My System:Arch-Arm on RPi!
"RacyPy" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
RaspberryPy: Lobster and I blog about the RPi.
Back to top
View user's profile Send_private_message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Mon 11 Jun 2012, 07:35    Post_subject:  

Apparently you can also over volt and that gets the speed up. I won't be doing it . . .
_________________
Puppy WIKI
Back to top
View user's profile Send_private_message Visit_website 
antiloquax


Joined: 27 Jan 2012
Posts: 405

PostPosted: Mon 11 Jun 2012, 08:08    Post_subject:
Sub_title: My RPi sees action at the chalk-face
 

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.
love.PNG
 Description   
 Filesize   10.81 KB
 Viewed   654 Time(s)

love.PNG


_________________
My System:Arch-Arm on RPi!
"RacyPy" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
RaspberryPy: Lobster and I blog about the RPi.
Back to top
View user's profile Send_private_message 
darkcity


Joined: 23 May 2010
Posts: 2479
Location: near here

PostPosted: Mon 11 Jun 2012, 08:21    Post_subject:  

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/issue7/armcode/index.htm

_________________
helping Wiki for help | IF SendSpace link = "dead" THEN PM me ("up file to http://meownplanet.net/")
Back to top
View user's profile Send_private_message Visit_website 
antiloquax


Joined: 27 Jan 2012
Posts: 405

PostPosted: Mon 11 Jun 2012, 08:34    Post_subject:  

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!
"RacyPy" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
RaspberryPy: Lobster and I blog about the RPi.
Back to top
View user's profile Send_private_message 
darkcity


Joined: 23 May 2010
Posts: 2479
Location: near here

PostPosted: Mon 11 Jun 2012, 09:59    Post_subject:  

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

; -)

_________________
helping Wiki for help | IF SendSpace link = "dead" THEN PM me ("up file to http://meownplanet.net/")
Back to top
View user's profile Send_private_message Visit_website 
greengeek

Joined: 20 Jul 2010
Posts: 2670
Location: New Zealand

PostPosted: Mon 11 Jun 2012, 15:02    Post_subject:  

Antiloquax - 88% ?? Surely it's more than that! Smile
You must have read the number upside down. It should be 88
Oh, wait...
Back to top
View user's profile Send_private_message 
antiloquax


Joined: 27 Jan 2012
Posts: 405

PostPosted: Mon 11 Jun 2012, 16:15    Post_subject:  

Smile
_________________
My System:Arch-Arm on RPi!
"RacyPy" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
RaspberryPy: Lobster and I blog about the RPi.
Back to top
View user's profile Send_private_message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Mon 11 Jun 2012, 21:26    Post_subject:  

Guys,

Stay fruity. Our slice of pi will come Cool
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 Smile
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 or Very Mad tried to jemmy open my front door. Rolling Eyes
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
Smile

_________________
Puppy WIKI
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 24 of 31 Posts_count   Goto page: Previous 1, 2, 3, ..., 22, 23, 24, 25, 26, ..., 29, 30, 31 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Taking the Puppy out for a walk » Announcements
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0949s ][ Queries: 12 (0.0089s) ][ GZIP on ]