Go to advanced search

by richrarobi
Wed Feb 18, 2015 1:03 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using an Arduino as a slave I/O board
Replies: 147
Views: 138266

Re: Using an Arduino as a slave I/O board

This is very scary. Using threaded classes and sockets to scan the keypad on the LCD panel. A background thread polls the hardware and sends messages via sockets (it is local but could be REMOTE to another system!!) to the listener (in this case it could be the radio app...) - the LCD keypad is now ...
by richrarobi
Tue Feb 17, 2015 10:09 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using an Arduino as a slave I/O board
Replies: 147
Views: 138266

Re: Using an Arduino as a slave I/O board

Have you seen this? re startup time of pi + arduino

http://www.raspberrypi.org/forums/viewt ... 0&p=446771
by richrarobi
Tue Feb 17, 2015 7:46 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using an Arduino as a slave I/O board
Replies: 147
Views: 138266

Re: Using an Arduino as a slave I/O board

I was thinking more something like this (but it doesn't have interrupts either, so you maybe don't gain anything), Could interrupts be added somehow? It's an option, though. http://www.mikronauts.com/raspberry-pi/raspberry-pi-i2c-4x4-matrix-keypad-with-mcp23017-and-python/ Or even this (He wants a b...
by richrarobi
Tue Feb 17, 2015 3:52 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using an Arduino as a slave I/O board
Replies: 147
Views: 138266

Re: Using an Arduino as a slave I/O board

I don't think Nanpy implements interrupts (yet?), so the keyboard would have to be read by a polled approach - possibly a separate code thread? I will have to read the python manual!! Have you considered tagging one of those Arduino keypads to your Pi GPIO? Maybe I will try that. RichR p.s. No Ardui...
by richrarobi
Mon Feb 16, 2015 9:02 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using an Arduino as a slave I/O board
Replies: 147
Views: 138266

Re: Using an Arduino as a slave I/O board

First the bad news (?!) - I have decided to ditch the lcd panel from the Arduino. Reason: - It takes up three quarters of the Ardy functionality, and sits there using power. Also when you drive the LCD with the PI it takes a lot of processing time, especially waiting for scrolling. If you want butto...
by richrarobi
Mon Feb 16, 2015 8:42 am
Forum: Networking and servers
Topic: Samba, ACLs, vfat and cifs - pulling my hair out...
Replies: 3
Views: 1885

Re: Samba, ACLs, vfat and cifs - pulling my hair out...

You have done a lot of work, but.... please don't take this as negative comment. Anita touched a very good point at the end of post. Samba is intended as a bolt on to 'bring down' Unix / Linux to the level of windows server. You only need smb if you want windows systems to see your files. Only on th...
by richrarobi
Sun Feb 15, 2015 1:29 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using an Arduino as a slave I/O board
Replies: 147
Views: 138266

Re: Using an Arduino as a slave I/O board

I didn't use his script, it was too convoluted for my liking, I just used the install as guidance. I have been using direct commands to mpc from a remote ssh session to control the daemon. Now that the Arduino and LCD panel are working (Nanpy 0.9.2 on both Pi's) , I have begun work on a radio script...
by richrarobi
Sat Feb 14, 2015 10:03 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using an Arduino as a slave I/O board
Replies: 147
Views: 138266

Re: Using an Arduino as a slave I/O board

Nanpy0.9.2 I followed my notes to install on pi-01 (a model B used as Internet radio) - once it was connected properly ( !!! ) it worked (only flashing an LED, but it did flash) - again through the serial UART.. seems like a good idea to do these: sudo apt-get update sudo apt-get upgrade if you want...
by richrarobi
Sat Feb 14, 2015 8:20 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using an Arduino as a slave I/O board
Replies: 147
Views: 138266

Re: Using an Arduino as a slave I/O board

No pressure then? Here's the firmware bit:- Plan B to get the nanpy firmware by a roundabout route because the normal route didn't work (I think they forgot to make it public): On a windows pc , firefox browser, search for Nanpy. The first one up is https://pypi.python.org/pypi/nanpy on that page, f...
by richrarobi
Sat Feb 14, 2015 6:14 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using an Arduino as a slave I/O board
Replies: 147
Views: 138266

Re: Using an Arduino as a slave I/O board

How can I install the driver to RPi if I need to use driver library files for some sensors attached to Arduino? Sorry, I sort of jumped over your post. I think the answer is that with Nanpy (or Firmata) installed on Arduino you use that interface on the PI also to address all your devices attached ...
by richrarobi
Sat Feb 14, 2015 5:55 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using an Arduino as a slave I/O board
Replies: 147
Views: 138266

Re: Using an Arduino as a slave I/O board

First last... see grotty picture attached (serial port is ttyAMA0, I think USB of pi is ttyACM0) The serial port is normally allocated to serial login - for those who might want to attach an old fashioned terminal - you have to remove it from the boot process to use it. pi02arduinosainsLCD3.jpg yell...
by richrarobi
Sat Feb 14, 2015 12:38 am
Forum: Networking and servers
Topic: Help with file transfer using SSH
Replies: 10
Views: 8683

Re: Help with file transfer using SSH

You have choices. Push or pull? Pull is probably simpler. One system cycles or polls the camera systems, to request a picture. Windows or pi , doesn't matter, but all Linux/UNIX is simpler. Reread my code. It is in there. Run commands from central system. This is sequential , probably not so interes...
by richrarobi
Fri Feb 13, 2015 11:05 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using an Arduino as a slave I/O board
Replies: 147
Views: 138266

Re: Using an Arduino as a slave I/O board

OK, I am converted! I prefer nanpy!! (Using 0.9.2 too!) Took all day (and all evening to make the code work!!!!) This code shows how to address the serial port with nanpy (not USB) The git approach for getting the firmware doesn't work, (kicks me out, maybe I need to login to their site?) downloaded...
by richrarobi
Fri Feb 13, 2015 10:24 pm
Forum: Networking and servers
Topic: Help with file transfer using SSH
Replies: 10
Views: 8683

Re: Help with file transfer using SSH

If you want to drive it from windows, a possible solution is the putty command line back end called plink . Perl could be used as follows. If you set up your public keys properly you don't need the passwords. The subroutine code was in use daily to centrally monitor a bunch of Sun Solaris systems fr...
by richrarobi
Tue Feb 10, 2015 1:09 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using an Arduino as a slave I/O board
Replies: 147
Views: 138266

Re: Using an Arduino as a slave I/O board

I thought this should be shared (it might be important): I decided to try connecting everything from the pi via i2c. Connected it up using an i2c level shifter (without linking power leads across the device), I found that the Arduino lights up with no power applied to it. I didn't want to have this ...
by richrarobi
Mon Feb 09, 2015 9:32 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using an Arduino as a slave I/O board
Replies: 147
Views: 138266

Re: Using an Arduino as a slave I/O board

I got the i2c to work on pi - with a HMC5883L - the arduino is still separately available for flashy things (LED), wiggly things (Servo) and possibly twiddly things - (Pots) Arduino is currently controlled through the serial port to Standard Firmata. Being a stubborn type I will persist in the Nanpy...
by richrarobi
Mon Feb 09, 2015 9:15 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using an Arduino as a slave I/O board
Replies: 147
Views: 138266

Re: Using an Arduino as a slave I/O board

They don't make it clear if the firmata sketch is for running i2c on arduino or for an arduino connected to pi with i2c. What would python commands look like to drive the i2c on arduino using firmata? I read both the sketch's 20 times and still have no idea what python to write to drive i2c. My ardu...
by richrarobi
Sun Feb 08, 2015 4:11 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Using an Arduino as a slave I/O board
Replies: 147
Views: 138266

Re: Using an Arduino as a slave I/O board

This is probably really a Firmata/Arduino issue rather than a pi issue!! My second pi has an arduino uno attached for connecting to things. I didn't want to attach 'things' directly to my pi, thought it would be more understandable via arduino. I used a serial connection instead of usb just by chang...
by richrarobi
Sun Feb 08, 2015 3:29 pm
Forum: Advanced users
Topic: dynamic ip address and apache home server
Replies: 18
Views: 4808

Re: dynamic ip address and apache home server

Avahi daemon would probably answer your first question.
by richrarobi
Sun Feb 08, 2015 2:39 pm
Forum: Networking and servers
Topic: Pi Together
Replies: 1
Views: 479

Re: Pi Together

Take a look at my post on advanced / Faster Way To Transfer Video File - using ssh without password prompts. Might help. (Clusters are too tightly coupled, and you won't get windows style app servers on unix type systems, but you can run things remotely using ssh - using bash, perl, python or whatev...
by richrarobi
Sun Feb 08, 2015 1:58 pm
Forum: Advanced users
Topic: Faster Way To Transfer Video FIle
Replies: 4
Views: 2565

Re: Faster Way To Transfer Video FIle

ssh or sftp might give a better speed or more generalized solution. I am working on running mini-applications on distributed pi's (only 2 so far, not counting windows laptop (yuk!) and linux pc's) If you share authorized_keys, then the systems can also interconnect without using passwords. loosely -...

Go to advanced search