Quantcast
Channel: Wireless Connectivity
Viewing all articles
Browse latest Browse all 116964

Forum Post: RF2560 GPIO Problem (externally powered)

$
0
0

I am getting a very strange problem with the RF2560.

I have the "Accelerometer Demo" that comes with the unit installed and it seems to work great. It connects to my Android phone and starts streaming the accelerometer data which i can view using the Blueterm app. What I really wanted to do was have some of the GPIO pins do stuff when the device Recieved data over SPP.

I edited the accelerometer project slightly by adding in a simple line:

TOGGLE_LED2();

I added this to the part of the cod that receives data hoping that whenever the unit received data the LED should toggle. This is a basic test.

I compiled it and it ran just fine, EXACTLY as expected, as soon as I send any form of data to the target board, the LED toggles. HOWEVER when I unplug the target board from the USB emulator and use the battery pack it behaves strangely. The code still runs, I can still connect with my phone, I still receive the stream of accelerometer data, but the LED refuses to teggle when i send data. I have tried it with ALL GPIO pins avaliable, they all seem to work just fine when I power the board from the USB Emulator (The Emulator doesn't even need to be plugged into my PC, If I power the emulator with a standard 5V supply the LED toggles)

I have also tried powering the target board from a 3.5V bench top power supply, but same results as the battery pack

So whenever I try to use any of the two target board on battery power the GPIO's seem to freeze while the SPP is active . . . 

I simply want to make the target board output a PWM signal on an abvaliable GPIO and then to change the duty cycle of the PWM when it recieves commands over bluetooth from my phone, but  cannot find a way of outputting a PWM signal if the GPIO ports freeze up.


Viewing all articles
Browse latest Browse all 116964

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>