Go to advanced search

by manxam
Tue Apr 23, 2013 11:33 pm
Forum: Python
Topic: faster spi transfers in [python?]
Replies: 4
Views: 2485

Re: faster spi transfers in [python?]

Perhaps you can try PyPy instead of cpython? It's available in an armel branch in the 'nightlies' section. Running a quick count to 5,000,000 with the timeit script using: cpython : 378 ms average ipython: 428 ms average pypy: 6.38 ms average I'm not certain how much faster it will make your code bu...
by manxam
Wed Mar 13, 2013 6:07 pm
Forum: Media centres
Topic: JSON control on Frodo
Replies: 6
Views: 5636

Re: JSON control on Frodo

http://yourxbmcipaddyhere/jsonrpc?request= + one of the following commands XBMC DOWN={"jsonrpc":"2.0","method":"Input.Down","id":1} XBMC RIGHT={"jsonrpc":"2.0","method":"Input.Right","id":1} XBMC SELECT={"jsonrpc":"2.0","method":"Input.Select","id":1} XBMC LEFT={"jsonrpc":"2.0","method":"Input.Left"...
by manxam
Tue Mar 12, 2013 7:46 pm
Forum: Python
Topic: Python proportional value change
Replies: 8
Views: 1136

Re: Python proportional value change

Hey, Im looking for a method in python to change a parameter in proportion to another. In detail: I need a continuous detection of an analog input. This input has a range of 0-100. And an output with the range of 0-1023. I want to change the output continuous in proportion to the input. For example...
by manxam
Tue Mar 12, 2013 1:50 am
Forum: Automation, sensing and robotics
Topic: Energy monitor, plugin not clamp
Replies: 2
Views: 1165

Re: Energy monitor, plugin not clamp

I came across THIS the other day and saved the link as I think it may come in handy for me in the future. Perhaps this device would also work for your need?
by manxam
Mon Mar 11, 2013 4:48 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: MCP3008 SPI Inaccurate readings..
Replies: 13
Views: 16222

Re: MCP3008 SPI Inaccurate readings..

I really appreciate the very thorough response Paul. You've given me a lot more information and advice than I expected. I'll order a couple different I2C ADC and tinker around with them vs the MCP30008 and the ATMega ADC. We'll see what works best for this setup. This isn't mission critical stuff bu...
by manxam
Mon Mar 11, 2013 12:21 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: MCP3008 SPI Inaccurate readings..
Replies: 13
Views: 16222

Re: MCP3008 SPI Inaccurate readings..

Paul, OK now you're really piqued my interest and opened another can of worms so-to-speak :) What's the benefit to using a slower ADC? With the MCP30008 on the SPI bus I just have a loop that reads every 5 seconds or so, takes a few readings back to back with a small delay in between, and then avera...
by manxam
Sat Mar 09, 2013 1:18 am
Forum: HATs and other add-ons
Topic: Using the Gertboard to program other ATMega chips?
Replies: 12
Views: 3743

Re: Using the Gertboard to program other ATMega chips?

A step by step isn't necessary really... Just connect the 4 SPI pins on the Pi (or the Gertboard) to their respective pins on the ATMega. You have: Raspberry Pi Pins: ATMEGA 168/328 Pins: MOSI -> PB3 MISO -> PB4 SCLK -> PB5 SS -> PB2 (for SS we'll use CE0 as that's what the Gertboard uses) Program i...
by manxam
Fri Mar 08, 2013 10:36 pm
Forum: HATs and other add-ons
Topic: Using the Gertboard to program other ATMega chips?
Replies: 12
Views: 3743

Re: Using the Gertboard to program other ATMega chips?

That's the information that I had found as well. I had just hoped you knew otherwise.

Thanks again Gert.
Cheers!
by manxam
Fri Mar 08, 2013 8:44 pm
Forum: HATs and other add-ons
Topic: Using the Gertboard to program other ATMega chips?
Replies: 12
Views: 3743

Re: Using the Gertboard to program other ATMega chips?

Ha, I've already purchased two Gertboards one V1 and one V2 assembled so I've got you covered there :) I really do appreciate the detailed help and the lack of "sales pitch" though! I never even considered the fact that I could just use the SPI interface on the Pi to program my ATMega on the breadbo...
by manxam
Fri Mar 08, 2013 7:38 pm
Forum: HATs and other add-ons
Topic: Using the Gertboard to program other ATMega chips?
Replies: 12
Views: 3743

Using the Gertboard to program other ATMega chips?

I'd like to buy a few 328p's and run them on breadboard at either 3.3V or 5.0V using the internal 8Mhz RC but don't have another arduino or programmer for these chips. I'd like to just swap these into the Gertboard temporarily for programming. So... I was curious if I could use avrdude and the Gerbo...
by manxam
Fri Mar 08, 2013 7:30 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: MCP3008 SPI Inaccurate readings..
Replies: 13
Views: 16222

Re: MCP3008 SPI Inaccurate readings..

I really appreciate your responses. So, given your answer, would it be preferable to use an Atmega for LDR and TMP36 readings and outputting data via serial vs using an MCP3008? This would just be for measuring light level and temperature in a room. One LDR and one TMP36 per room hacked into the end...
by manxam
Tue Mar 05, 2013 12:18 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: MCP3008 SPI Inaccurate readings..
Replies: 13
Views: 16222

Re: MCP3008 SPI Inaccurate readings..

Thanks for the reply Tony. I'm running the MCP3008 via the Pi's regulated 3V3. What would be the reason for running it at an unregulated 5V? I would expect the issue you mentioned below to be an issue when run that way due to to power supply stability and/or fluctuations. P.S I took a look at your k...
by manxam
Fri Mar 01, 2013 8:14 pm
Forum: General discussion
Topic: New: `rpio-curses` , a GPIO user interface for the terminal
Replies: 13
Views: 4444

Re: New: `rpio-curses` , a GPIO user interface for the termi

Wow, that's funny. I usually use an 80x25 term window as that's the default for OSX' term application. I just stretched it to 26 and it works no problem :)

Thanks!
by manxam
Fri Mar 01, 2013 7:36 pm
Forum: General discussion
Topic: New: `rpio-curses` , a GPIO user interface for the terminal
Replies: 13
Views: 4444

Re: New: `rpio-curses` , a GPIO user interface for the termi

Thanks for posting this. Unfortunately I'm met with an error after attempting to run. This is on Raspbian and python 2.7 : Traceback (most recent call last): File "/usr/local/bin/rpio-curses", line 5, in <module> pkg_resources.run_script('RPIO==0.8.4', 'rpio-curses') File "/usr/local/lib/python2.7/d...
by manxam
Wed Feb 27, 2013 2:59 am
Forum: HATs and other add-ons
Topic: Using ATMega Standalone
Replies: 5
Views: 2558

Re: Using ATMega Standalone

OK that makes sense. If I've got it right then the current fuses Clock Source setting should be "Exterrnal Crystal (8.0 MHz+)" ? As in this page: http://www.ladyada.net/learn/avr/fuses.html So if I ran 5V into the chip instead, does that mean I should be able to use a 16Mhz resonator? Just checking...
by manxam
Sat Feb 23, 2013 2:50 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: MCP3008 SPI Inaccurate readings..
Replies: 13
Views: 16222

MCP3008 SPI Inaccurate readings..

I was previously using these sensors on the Gertboard using the ATMega 328p and the values were all as expected. I'm now trying my hand at an MCP3008 on the same breadboard and read via SPI but the results are "strange" I have two identical TMP36's and two identical LDRs. The TMP36s are about an inc...
by manxam
Mon Feb 18, 2013 11:04 pm
Forum: HATs and other add-ons
Topic: LEDmeter.ino missing...
Replies: 6
Views: 1191

Re: LEDmeter.ino missing...

Nevermind. I found a random link to a 2013 version of gertboard_sw which contains this file. The one on Farnell's site is 2012-07 and the one referenced in Gert's link above is the same. Neither of these contain this.

Cheers!
by manxam
Mon Feb 18, 2013 10:19 pm
Forum: HATs and other add-ons
Topic: LEDmeter.ino missing...
Replies: 6
Views: 1191

LEDmeter.ino missing...

I've just started playing with the ATMega on the gertboard but none of the gertboard_sw files that I can find contain the referenced ledmeter.ino, just C files and the minicom config.

Could someone please post this file if you've got it?

Thanks!
by manxam
Mon Feb 18, 2013 6:51 am
Forum: Automation, sensing and robotics
Topic: Razberry - ZWave Home Control
Replies: 16
Views: 29488

Re: Razberry - ZWave Home Control

All of your requirements can be met wirelessly with various zwave sensors or wired through relays and contact closures connected directly to the Pi. From what I recall the Razberry doesn't currently support beaming and/or the security (lock) class so it won't be able to connect to your door lock. Ap...
by manxam
Mon Feb 11, 2013 5:02 pm
Forum: General discussion
Topic: A plea for help - x11vnc Autostart
Replies: 11
Views: 3805

Re: A plea for help - x11vnc Autostart

Glad to hear it all worked out. Other users have had issues with the black screen when running from xinitrc or sessionrc but I'm not certain why. Perhaps it's been initiated before LXDE? The autostart folder is read by the window manager after startup to it's initialized a little later in the chain....
by manxam
Mon Feb 11, 2013 6:53 am
Forum: General discussion
Topic: A plea for help - x11vnc Autostart
Replies: 11
Views: 3805

Re: A plea for help - x11vnc Autostart

Apparently I can't use the italics code in the code block and I can't edit my post as it needed moderation first and too much time has passed. Ignore the "[ i ]" and "[ /i ]" in my post above :)
by manxam
Mon Feb 11, 2013 6:06 am
Forum: General discussion
Topic: A plea for help - x11vnc Autostart
Replies: 11
Views: 3805

Re: A plea for help - x11vnc Autostart

You have a few options: You can create an .xsessionrc or an .xinitrc in your user 'pi' home folder with the x11vnc commands and it'll start upon X starting. The other option is to create a directory under ~/.config/autostart if it doesn't already exist. In this folder create a file named 'x11vnc.des...

Go to advanced search