The time now is Wed 22 May 2013, 11:15
All times are UTC - 4 |
|
Page 24 of 31 [455 Posts] |
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
|
Posted: 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!
 |
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
|
|
 |
antiloquax

Joined: 27 Jan 2012 Posts: 405
|
Posted: 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
|
|
 |
aarf
Joined: 30 Aug 2007 Posts: 3620 Location: around the bend
|
Posted: 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
|
|
 |
antiloquax

Joined: 27 Jan 2012 Posts: 405
|
Posted: 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!).
| Description |
|
| Filesize |
199.82 KB |
| Viewed |
833 Time(s) |

|
| Description |
|
| Filesize |
300.26 KB |
| Viewed |
834 Time(s) |

|
_________________ 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
|
|
 |
antiloquax

Joined: 27 Jan 2012 Posts: 405
|
Posted: Thu 07 Jun 2012, 05:24 Post subject:
Subject description: 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
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: 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 . . .
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
Puppi Linux
Raspberry Rippling
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
antiloquax

Joined: 27 Jan 2012 Posts: 405
|
Posted: 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).
_________________ 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
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: 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
|
|
 |
antiloquax

Joined: 27 Jan 2012 Posts: 405
|
Posted: Mon 11 Jun 2012, 08:08 Post subject:
Subject description: 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.
| Description |
|
| Filesize |
10.81 KB |
| Viewed |
562 Time(s) |

|
_________________ 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
|
|
 |
darkcity

Joined: 23 May 2010 Posts: 2215 Location: near here
|
Posted: 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
_________________ Wiki Audacity 2.0.1
|
|
Back to top
|
|
 |
antiloquax

Joined: 27 Jan 2012 Posts: 405
|
Posted: 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
|
|
 |
darkcity

Joined: 23 May 2010 Posts: 2215 Location: near here
|
Posted: 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
; -)
_________________ Wiki Audacity 2.0.1
|
|
Back to top
|
|
 |
greengeek
Joined: 20 Jul 2010 Posts: 1184 Location: New Zealand
|
Posted: Mon 11 Jun 2012, 15:02 Post subject:
|
|
Antiloquax - 88% ?? Surely it's more than that!
You must have read the number upside down. It should be 88
Oh, wait...
|
|
Back to top
|
|
 |
antiloquax

Joined: 27 Jan 2012 Posts: 405
|
Posted: Mon 11 Jun 2012, 16:15 Post subject:
|
|
_________________ 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
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Mon 11 Jun 2012, 21:26 Post subject:
|
|
Guys,
Stay fruity. Our slice of pi will come
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 tried to jemmy open my front door.
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 WIKI
|
|
Back to top
|
|
 |
|
|
Page 24 of 31 [455 Posts] |
Goto page: Previous 1, 2, 3, ..., 22, 23, 24, 25, 26, ..., 29, 30, 31 Next |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|