Issues controlling Bluefruit LE UART friend Pin I/O

For other supported Arduino products from Adafruit: Shields, accessories, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
User avatar
adafruit2
 
Posts: 22148
Joined: Fri Mar 11, 2005 7:36 pm

Re: Issues controlling Bluefruit LE UART friend Pin I/O

Post by adafruit2 »

yeah sooooo. the issue is that Firmata is so hardcoded to Atmega328 that for 32u4 support we not only have to change up the sketch (done) but also the app (right now analog inputs dont work)
as soon as we have a fix we'll post it to the blog!

if you're feeling adventuous, we have a branch in github which does compile & 'work' on the atmeag32u4 but not analog inputs
https://github.com/adafruit/Adafruit_BL ... r_nrf51822
you'll have to noodle with

Code: Select all

    Adafruit_BluefruitLE_SPI bluefruit(BLUEFRUIT_SPI_SCK, BLUEFRUIT_SPI_MISO, BLUEFRUIT_SPI_MOSI, BLUEFRUIT_SPI_CS, BLUEFRUIT_SPI_IRQ, BLUEFRUIT_SPI_RST);
and

Code: Select all

    uint8_t boards_digitaliopins[] = {3, 4, 5, 6, 7, 8, A0, A1, A2, A3, A4, A5};
to match your bluefruit connection and what pins are available, respectively.
this code is ultra bleeding edge and we can't provide any help/support for it since we're working to merge it into mainline instead :)

since we have to update the app to get analog pins working - its going to take more time than expected. no ETA but we are working on it!

User avatar
hgeisler
 
Posts: 11
Joined: Sat Sep 12, 2015 7:22 pm

Re: Issues controlling Bluefruit LE UART friend Pin I/O

Post by hgeisler »

Thanks,

I tried the adventurous option but I thought my bluefruit was a le UART friend and not and SPI friend, so does this mean I can't connect with SPI?

User avatar
adafruit2
 
Posts: 22148
Joined: Fri Mar 11, 2005 7:36 pm

Re: Issues controlling Bluefruit LE UART friend Pin I/O

Post by adafruit2 »

change the config to UART, its the same overall function, just different 'transports'

User avatar
ablarer
 
Posts: 3
Joined: Wed Oct 07, 2015 10:40 am

Re: Issues controlling Bluefruit LE UART friend Pin I/O

Post by ablarer »

I also have a Bluefruit LE SPI friend (nRF51822). Thus, I would be happy to be informed as soon as possible when the I/O iOS APP and the Arduino and FIrmata sketches are ready to use for this system.

User avatar
hgeisler
 
Posts: 11
Joined: Sat Sep 12, 2015 7:22 pm

Re: Issues controlling Bluefruit LE UART friend Pin I/O

Post by hgeisler »

Was a fix ever found for the above issue?

User avatar
adafruit2
 
Posts: 22148
Joined: Fri Mar 11, 2005 7:36 pm

Re: Issues controlling Bluefruit LE UART friend Pin I/O

Post by adafruit2 »


User avatar
greenmoon
 
Posts: 10
Joined: Tue Mar 19, 2013 3:58 pm

Re: Issues controlling Bluefruit LE UART friend Pin I/O

Post by greenmoon »

I still don't see how to parse the pin i/o data from the app to control an analog output (led for example) on a pwm pin. Can you post an example for doing this?

User avatar
adafruit2
 
Posts: 22148
Joined: Fri Mar 11, 2005 7:36 pm

Re: Issues controlling Bluefruit LE UART friend Pin I/O

Post by adafruit2 »

we dont have an example code for it, but it is Firmata compatible
so you can check out the firmata documentation to see the serial commands used for analog/pwm writing
http://www.firmata.org/wiki/Main_Page

User avatar
hgeisler
 
Posts: 11
Joined: Sat Sep 12, 2015 7:22 pm

Re: Issues controlling Bluefruit LE UART friend Pin I/O

Post by hgeisler »

Perhaps I can help you, I am no expert but I was able to get it working on mine. Do you have a Bluefruit LE UART friend? as pictured a in this page?

https://learn.adafruit.com/introducing- ... d/software

User avatar
greenmoon
 
Posts: 10
Joined: Tue Mar 19, 2013 3:58 pm

Re: Issues controlling Bluefruit LE UART friend Pin I/O

Post by greenmoon »

Thanks, I would appreciate any help. I have the similar SPI friend (https://www.adafruit.com/products/2633), but I think the pwm pin control should be similar or the same.

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Arduino products from Adafruit”