is there RFM12Pi or Ri Outputs available.

Hi,

I could do with 2 outputs from the Pi or RFM12Pi, ideally one digital output and a PWM.

I need to toggle these based on the running code in raspbverypi_run.php file.....can it be done ~~(is there free pins in can use?)and any sample code appreciated.

Or any other ways of doing it.....does the EmonGLCD have spare capacity to toggle a couple of things on/off?

Matt

glyn.hudson's picture

Re: is there RFM12Pi or Ri Outputs available.

Hi Matt,

There are plenty of free I/O's on the ATmega328 on the RFM12Pi but none of these are broken out. Your best bet would be to use a free GPIO on the Pi. The RFM12Pi only uses UART Tx and RX and GPIO 4. It should be possible to use any other GPIO for general control . I don't think the Pi can do hardware PWM and the current each GPIO pin can deliver is quite small, see http://elinux.org/Rpi_Low-level_peripherals.

There are plenty of examples on the internet for controlling the GPIO's. It should be possible to add this code to the raspberry pi script. 

 

The monGLCD is much easier. All the free pins are broken out and being Arduino based it's super easy to turn a pin on/off or PWM. See http://openenergymonitor.org/emon/emonglcd/ for port map and http://solderpad.com/openenergymon/emonglcd/ for emonGLCD board design. 

 

Good luck! 

mattnj's picture

Re: is there RFM12Pi or Ri Outputs available.

Thanks, more to get stuck into!

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.