Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: markvr

Search: Search took 0.00 seconds.

  1. Replies
    1
    Views
    1,065

    Setting rotary encoders to zero in functions

    I have the following code - this is extracted from a larger program where the functions are in a separate "util.cpp" file. So it looks a bit odd here but demonstrates the relevant issue:

    #include...
  2. Replies
    4
    Views
    1,173

    Rotary encoder "noise"

    I have followed the example at https://www.pjrc.com/teensy/td_libs_Encoder.html with that exact source code.

    However when I turn the dial just once, I get the following:

    Left = 0
    Left = 1...
  3. Replies
    9
    Views
    3,435

    Almost. You can reprogramme the teensy using...

    Almost. You can reprogramme the teensy using both. It just changes where power is taken from. For low power circuits (< 500ma) with a few LEDs it's fine to power them using a normal USB cable from...
  4. Replies
    30
    Views
    11,270

    Maybe this is where things like the Arduino Yun...

    Maybe this is where things like the Arduino Yun fit. You get a full Linux board for high level stuff like networking, combined with a microcontroller for the low level stuff like accurate timing for...
  5. Replies
    30
    Views
    11,270

    Unfortunately, I feel more like a fish out of...

    Unfortunately, I feel more like a fish out of water :)



    I didn't realise that, it's good news, I'll try it out. Hopefully it will get an ecosystem and community behind it as well, especially...
  6. Replies
    30
    Views
    11,270

    I too am a solid Javascript (and Java)...

    I too am a solid Javascript (and Java) programmer, who has been hacking around with Teensy's and Arduinos. It's like going back in time 30yrs and has been driving me nuts! The most useful book I...
  7. Replies
    7
    Views
    2,209

    I need to transfer very low data rates, maybe...

    I need to transfer very low data rates, maybe around 12kps, possibly less. Does anyone know if the serial port takes care of ensuring reliable comms, or do I need some sort of error checking in my...
  8. Replies
    7
    Views
    2,209

    Max USB cable length to Teensy

    I'd like to connect my Teensy to a Raspberry PI to drive some LED lighting. The problem is they are on opposite sides of the room.

    What is the maximum length of USB cable that is likely to work? ...
  9. Replies
    9
    Views
    3,435

    Personally rather than risk damaging my Teensy, I...

    Personally rather than risk damaging my Teensy, I just cut the 5v line in a USB cable instead. In my cable this was red, but if you check the pinouts (http://en.wikipedia.org/wiki/USB) you can make...
  10. Replies
    1
    Views
    1,012

    About 5min after posting the above, I found a...

    About 5min after posting the above, I found a blog post (http://arduinoetcetera.blogspot.co.uk/2011/01/classes-within-classes-initialiser.html) and managed to get the TronAudio class to compile with...
  11. Replies
    1
    Views
    1,012

    Using Teensy Audio with another class

    I have a class I wrote myself that uses the native ARM FFT routines to sample audio inputs to an analog pin. It samples the pin, does the FFT, and then saves the FFT results in an array. I store...
  12. Replies
    3
    Views
    1,358

    Thanks, I've done what you suggested. the header...

    Thanks, I've done what you suggested. the header now looks like:


    class Modes {
    protected:

    rgb_lcd *lcd;
    CRGB *leds;
    Encoder *dialOne;
    Encoder *dialTwo;
  13. Replies
    3
    Views
    1,358

    Pasing objects into C++ classes

    I'm a Java developer struggling with using C++ on my Teensy, and would appreciate some help!

    I currently have a very long single file sketch that manipulates some LED ribbon. Currently for...
  14. Replies
    2
    Views
    1,177

    Have just worked out the bit about the frequency,...

    Have just worked out the bit about the frequency, there is a define in util.h of:
    // 48e6 / 44100
    #define PDB_PERIOD 1087

    So it's unsurprisingly 44.1khz, and presumably can changed as above!
  15. Replies
    2
    Views
    1,177

    Audio Library FFT with ADC input

    I'm using the new Audio library from Paul to sample from an analog pin and perform an FFT. It works great, and is far simpler (and I imagine vastly more CPU efficient) that my original efforts of...
  16. You could also try using Fast SPI LED 2...

    You could also try using Fast SPI LED 2 (https://code.google.com/p/fastspi/downloads/list) which only uses one strip. You will need to inject power at multiple points along a 5m strip
  17. Replies
    1
    Views
    1,556

    It seems that this isn't possible. See...

    It seems that this isn't possible. See http://www.parashift.com/c++-faq/memfnptr-vs-fnptr.html



    There are various workarounds for this. I've declared *everything* in the class as static, and...
  18. Replies
    1
    Views
    1,556

    IntervalTimer and C++

    I have some audio sampling code running successfully using IntervalTimer to sample the ADC at a fixed frequency, e.g. 9000Hz.

    Currently it's all in one big sketch file, and I'd like to split it...
  19. Replies
    19
    Views
    7,954

    IIRC I think the route to the Arduino IDE is...

    IIRC I think the route to the Arduino IDE is simple the base of it i.e. for you C:\Arduino_152-IsInstalled

    Make sure you add these defines to every project -...
  20. Replies
    7
    Views
    3,992

    I'm using this...

    I'm using this which is apparently 50w, compared to 40w in your link, so I'll turn it down a bit I think!

    thanks again, it was driving me nuts, and is going much smoother now :)
  21. Replies
    7
    Views
    3,992

    I gave up trying to poke wire through the hole,...

    I gave up trying to poke wire through the hole, and am going for the surface mount approach which is much more successful, and has less risk of destroying the pad. I hadn't considered tinning the...
  22. Replies
    7
    Views
    3,992

    Soldering WS2811 strip

    I'm trying to solder wires onto WS2811 strip and appear to be struggling somewhat! There are tiny holes in each pad, but I'm using 0.6mm hookup wire, which doesn't fit through them. If I enlarge...
  23. Replies
    5
    Views
    2,471

    Can you give me an idea of what speeds you were...

    Can you give me an idea of what speeds you were getting, even with unmatched antennas? I don't even know what order of magnitude we are talking, 10bps, 100bps, 1kbps, 10kbps....1Gbps :) ?!
  24. Replies
    5
    Views
    2,471

    VirtualWire Speed

    I'm interested in using Virtual Wire but was wondering if anyone knew what the likely data rates are - there is a section on that page about it, but doesn't specify any actual numbers.

    I'm not...
  25. Replies
    3
    Views
    3,644

    Ace thanks Paul! Incidentally for anyone else,...

    Ace thanks Paul!

    Incidentally for anyone else, it was this display and once I checked my wiring (doh!) I got it to work on my Teensy without any level shifters (and using 10k pullups). This is...
  26. Replies
    3
    Views
    3,644

    Due to my awesome coding skills* I've got this to...

    Due to my awesome coding skills* I've got this to compile by removing the dependence on Print.h entirely, and copying the functions that were used directly into the rgb_lcd.* files.

    The display...
  27. Replies
    3
    Views
    3,644

    Arduino library errors on Teensy

    I'm trying to use this - https://github.com/Seeed-Studio/Grove_LCD_RGB_Backlight - Arduino library on my Teensy. It drives a LCD display and works fine on an Arduino, but when trying to compile for...
  28. Looks interesting. I'm a big fan of Javascript,...

    Looks interesting. I'm a big fan of Javascript, it makes event driven coding so easy. Personally, I don't think compatibility with Arduino is that important as long as they have equivalent well...
  29. ah I see, I don't have that problem because I...

    ah I see, I don't have that problem because I remove the batteries and put them into a standalone charger. I also need about 10amps, and there aren't that many regulators around that can manage that!
  30. Replies
    10
    Views
    7,142

    Sounds perfect, I look forward to using it!

    Sounds perfect, I look forward to using it!
  31. Replies
    10
    Views
    7,142

    Cool it's great that you're working on this...

    Cool it's great that you're working on this already - hopefully save me some work! Which library are you referring to? I know you're working on an audio board as well, is this related to that? ...
  32. Why not put the LiOn cells in series, and then...

    Why not put the LiOn cells in series, and then drop the voltage? There are probably more regulators around that can drop the voltage than boost it? Or have I missed something? Seriously, I'm about...
  33. Replies
    10
    Views
    7,142

    Audio Processing

    I'm intending to use a Teensy and some ws2811 ribbon to build a fancy dress costume that reacts to music. I'd like the music reactivity to be quite good though, not just a simple vu meter. Much to...
  34. Replies
    7
    Views
    3,146

    I'm building something similar, and power is a...

    I'm building something similar, and power is a big concern of mine. I've previously used 12v non-addressable ribbon with 600 LEDs, which can be driven direct from 3x 18650 batteries (e.g....
  35. Replies
    8
    Views
    2,550

    Hi Paul, Hmm the installer doesn't seem to...

    Hi Paul,


    Hmm the installer doesn't seem to recognise my Arduino folder, "next" remains disabled even when it's the correct folder. The previous version installed fine.

    Code sample below. ...
  36. Replies
    8
    Views
    2,550

    Thanks both! Just to wrap this up for anyone...

    Thanks both!

    Just to wrap this up for anyone else reading: I'd recommend having your program do something like constantly flash the onboard LED when it runs, so you know it is still running OK. ...
  37. Replies
    8
    Views
    2,550

    I got it working again, and think this was...

    I got it working again, and think this was something to do with a line in another sketch, and I don't think my example sketch above had loaded properly - I'm still not entirely clear when I need to...
  38. Replies
    8
    Views
    2,550

    Serial port not recognised

    Hi, I've just bought a teensy for the first time, after initial great success, am having trouble with the serial port.

    It worked OK for an hr or two, i.e. I could use the serial monitor in the...
  39. Cool thanks Paul! I'll probably not have any...

    Cool thanks Paul! I'll probably not have any strips > 1m, but I was considering running power and gnd to each end anyway to avoid any probs caused by the voltage drop down them.

    Sounds like the...
  40. Hi thanks for the info. What voltage would you...

    Hi thanks for the info. What voltage would you say the strip stops working at? The batteries I am using are go from 4.2 to 3.7V, so if the strips stops working at 3.7 that is fine, but if it stops...
  41. Teensy, Ws2811 and 18650 litihium ion batteries

    I don't have a Teensy yet, but am investigating the feasibility of building a battery powered display using OctoWs2811 and up to 10m of 5v ws2811 ribbon. This combo looks like it has awesome...
Results 1 to 41 of 41