Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - jos.ph

Pages: [1]
1
Awesome thanks so much! Will absolutely try later today and report back.

2
Is it at all possible to get the source code for this app?

HUGE thanks in advance !

3
@tolson - strange! I am not getting that problem.

However, I need this code to be running while BLE is turned on. Obviously, the interrupt situation was a problem -- after removing the disable (`noInterrupts()`) and re-enable of interrupts from the `showStrip()` function, I've been getting very inconsistent but extremely noticeable "tears" when updating the LEDs frequently (~10fps or more).

The glitchy "tears" only happen when I'm updating 60 pixels or more (my circuit has 144 total). I'm moving to FastLED to see if that helps, otherwise I'll be replacing the NeoPixels with Adafruit's DotStar:https://learn.adafruit.com/adafruit-dotstar-leds/overview, which runs on 2-wire SPI (SCK & MOSI). Much faster update speed + less precise timing necessary.

4
I had to make the following changes to compile for Simblee in Arduino 1.6.5 (which I believe is the recommended Arduino version in the Simblee quickstart) -- apologies if I am reverting to an older version, but since this is the only thread with FastLED specifically in the title, maybe someone will find it useful. Note: made these changes to successfully *compile* - will report back with actual test results tomorrow.

FastLED `led_sysdefs.h`, line 6:
Code: [Select]
#if defined(NRF51) || defined(__RFduino__) || defined(__Simblee__)
Arduino Example
Code: [Select]
// Fire2012Simblee using FastLED 3.1 and Fire2012
// Modified by Thomas Olson
// teo20151222.01 Testing if conflicts with Simblee Radio on
// Modified for compiling on Simblee and RFduino - IDE 1.6.7
// teo20160328.01 verified works with Arduino IDE 1.6.8
// joe20160726.01 modified for Simblee & IDE 1.6.5


#include <SimbleeBLE.h>
#include <FastLED.h>

#define LED_PIN     6
#define COLOR_ORDER GRB
#define CHIPSET     WS2811
#define NUM_LEDS    24

#define BRIGHTNESS  200
#define FRAMES_PER_SECOND 60

bool gReverseDirection = false;

CRGB leds[NUM_LEDS];

void setup() {
  delay(3000); // sanity delay
  FastLED.addLeds<CHIPSET, LED_PIN, COLOR_ORDER>(leds, NUM_LEDS).setCorrection( TypicalLEDStrip );
  FastLED.setBrightness( BRIGHTNESS );
 
  SimbleeBLE.begin();
}

void loop(){
/* same */
}

5
Hi All -

Maybe this is useful to some, perhaps not but I took the original example posted by Sam Decrock and added more of the strandtest routines. Proven working with Simblee + Arduino 1.6.5. Note: I've got a 3.3v > 5v logic level shifter (this one works great https://www.adafru.it/1875, although bi-directionality is not necessary)

Gist is here: https://gist.github.com/jmsaavedra/7b7db98bcd43c32c617853ec8e61a3cc

Pages: [1]