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

Search:

Type: Posts; User: SteveSFX

Page 1 of 3 1 2 3

Search: Search took 0.00 seconds.

  1. Replies
    7
    Views
    164

    OK, thank you Paul for that in-depth answer. ...

    OK, thank you Paul for that in-depth answer. It's a legitimate Teensy 3.2 (bought from Cool Components if I remember rightly).

    I might try reflowing the main IC then (nothing to lose now), but it...
  2. Replies
    7
    Views
    164

    Hey all. OK Paul. First test.... no...

    Hey all.

    OK Paul. First test.... no bootloader. Indeed the Program pin was not at 3.3v.
    So I reflowed the IC with my hotair soldering gun (300 deg) and once it 'wetted', I re-tested it and...
  3. Replies
    7
    Views
    164

    Thanks for the advice. I will try and wrangle...

    Thanks for the advice. I will try and wrangle the board out tomorrow and have a proper test.
    I soldered it onto a PCB as I thought it would never have to come out again and I thought less chance of...
  4. Replies
    7
    Views
    164

    Hmm OK. I tried loading standard blink, but...

    Hmm OK.

    I tried loading standard blink, but it's definitely not communicating at all with the processor. It just says please press the program button in the Teensy pop-up window. The Teensy...
  5. Replies
    7
    Views
    164

    Teensy 3.2 not responding

    Hello all

    I have a project I built a while back with an integral Teensy 3.2, and today I went to update the software and I cannot connect to it.
    Windows acknowledges the USB device fine, but it...
  6. Replies
    3
    Views
    166

    Thanks for that link. They interesting and...

    Thanks for that link. They interesting and certainly worth investigating.

    Had a read through... maybe I missed it, but what was your PCB issue?

    My only issue might be graphics. I am trying...
  7. Replies
    3
    Views
    166

    Large touchscreens

    Hello all

    I have been waiting for Nextion screens to drop in price.... and if anything, they have gone up :confused:

    I need a 7" (approx) touchscreen for a Teensy 3.2 project.

    I have used...
  8. Replies
    4
    Views
    326

    I have a Pam8406 Amplifier on my board. 5W...

    I have a Pam8406 Amplifier on my board. 5W output (although I won't be running it at that), 5v supply.
    I would really like to switch it off when not used.

    I can just about squeeze a SOT23...
  9. Replies
    4
    Views
    326

    May I ask a question regarding PCB silk printing?...

    May I ask a question regarding PCB silk printing?

    Designing a PCB (done a few before). Using mainly 0805 resistors etc. Is it bad practice to cover an area with a filled silk print with...
  10. Replies
    4
    Views
    326

    :confused: Oh.... OK :confused:

    :confused: Oh.... OK :confused:
  11. Replies
    4
    Views
    326

    Learning the correct value calculations

    Vague title I know

    I have built many projects over the years.... I mean, LOADS. And they all work fine. I take much longer than someone who can work out the correct method immediately, but I...
  12. IDE = 1.8.8 I updated to 1.8.16, but then had...

    IDE = 1.8.8

    I updated to 1.8.16, but then had to roll back as the Oled screen library stopped working :mad:

    Oh well, won't be using digitalToggle then
  13. int Heartbeat = LED_BUILTIN; // LED pin void...

    int Heartbeat = LED_BUILTIN; // LED pin

    void setup() {
    // initialize the digital pin as an output.
    pinMode(Heartbeat, OUTPUT);
    }

    elapsedMillis stopwatch = 0;

    void loop() {
  14. elapsedMillis stopwatch = 0; void loop() { ...

    elapsedMillis stopwatch = 0;

    void loop()
    {
    if (stopwatch > 2000)
    {
    digitalToggle(Heartbeat);
    stopwatch = 0;
    }
    }
  15. Thanks chaps. We are all go here.

    Thanks chaps. We are all go here.
  16. OK, thanks. My 'demo' code is such a mess,...

    OK, thanks.

    My 'demo' code is such a mess, people probably will just tell me to go away and re-write it!
    I'll read up on elaspedMillis then.

    Why is my code wrong? I have used that method...
  17. Thanks Paul. Got both the IR library and the...

    Thanks Paul. Got both the IR library and the dual screens working on the same I2C bus.

    IR just needed the IDE updating.

    Am I being stupid? I have a LED on my project (Heartbeat), and I use...
  18. OK. Like I said, I hate updating my IDE, it...

    OK. Like I said, I hate updating my IDE, it nearly always breaks stuff. I already have shortcuts to 3x different versions of the IDE because I have projects using libraries that have not been...
  19. IR problem: Nope... never reaches: ...

    IR problem: Nope... never reaches: Serial.print(F("Ready to receive IR signals of protocols: "));

    Its exactly as the example. Tried a different pin (not that it should make a difference). ...
  20. Nope... never reaches: Serial.print(F("Ready...

    Nope... never reaches: Serial.print(F("Ready to receive IR signals of protocols: "));

    Its exactly as the example. Maybe pin 26 is not suitable?
  21. Thanks Paul. I have a huge amount of libraries...

    Thanks Paul. I have a huge amount of libraries installed, so I expect its picking the wrong one. I will check.
    Thank you for your advice.

    With regard to the same prototyping board I am playing...
  22. IDE = 1.8.8 Teensyduino = Loader = 1.45? ...

    IDE = 1.8.8
    Teensyduino = Loader = 1.45? Where do I find that out?

    I hate upgrading the IDE, it always breaks so many things
  23. IR library I don't need a degree to work out

    Hello all

    I have a Teensy 3.2 here, and trying to get the IRremote library working. Used it before, but the latest update is now so madly complicated with 'USE_DEFAULT_FEEDBACK_LED_PIN' and...
  24. Replies
    24
    Views
    1,924

    This line throws up and error... error:...

    This line throws up and error... error: expected initializer before 'LockAnimation'
  25. Replies
    1
    Views
    483

    Loop timing problem

    Hi

    Still working on my DMX project, but I thought a fresh thread for this question would be correct

    My main loop runs, samples sensors, reads and write DMX commands. All going fine.
    ...
  26. Replies
    18
    Views
    1,668

    Thanks Shawn, I will investigate that further. ...

    Thanks Shawn, I will investigate that further.
    I will eventually put this onto a proper PCB, so I will prototype a few options on a breadboard first and see how they perform
  27. Replies
    18
    Views
    1,668

    Shawn you are a legend. Thank you. I have...

    Shawn you are a legend. Thank you.

    I have amended my design. I have freed-up a hardware serial port (by using altSoftSerial for the Nextion screen). I now have Serial1 for DMX TX and Serial2 for...
  28. Replies
    24
    Views
    1,924

    Binned them. More trouble than they were worth. ...

    Binned them. More trouble than they were worth. Interesting learning curve, and did get them working to a degree, but they created more issues than they solved.
    I re-wrote the code more...
  29. Replies
    18
    Views
    1,668

    Shaun. Thank you for your time and attention on...

    Shaun. Thank you for your time and attention on this.
    I sat down last night and re-evaluated the project. I realised that you are correct (you knew that!)... I should really be using two separate...
  30. Replies
    18
    Views
    1,668

    The switching is done with this circuit: (I...

    The switching is done with this circuit: (I mentioned it above)...

    http://www.mathertel.de/Arduino/DMXShield.aspx

    I have breadboarded this circuit.

    I have used this circuit before and it...
  31. Replies
    24
    Views
    1,924

    Hmm OK. If I write to my Nextion screen with a...

    Hmm OK.

    If I write to my Nextion screen with a command in the main loop, occasionally it doesn't carry it out.
    This must be because the thread has been called and therefore the serial command to...
  32. Replies
    24
    Views
    1,924

    So, I declare a Mutex: Threads::Mutex...

    So, I declare a Mutex:


    Threads::Mutex LockAnimation;

    Then, in the subroutine, I call it first to 'protect' that sub routine?


    void Animation() {
  33. Replies
    18
    Views
    1,668

    Thanks Shawn. It does appear to be working, but...

    Thanks Shawn. It does appear to be working, but I am still tweaking about with it all and learning as I go.

    I'll explain the basic idea.

    5x 16A 230v input sockets. These go through 5x 30A...
  34. Replies
    24
    Views
    1,924

    Hi I worked out what was causing the lock-up....

    Hi

    I worked out what was causing the lock-up. I was jumping to the Thread routine from another line by accident.
    My interrupts are not in that thread

    See where we go from here!
  35. Replies
    24
    Views
    1,924

    OK. well the threads method is interesting, and...

    OK. well the threads method is interesting, and did work.... to a degree.
    But I have found it also can lead to the processor totally locking up for reasons I don't understand and cannot work out. ...
  36. Replies
    24
    Views
    1,924

    OK. Thanks for all the advice. I will tinker...

    OK. Thanks for all the advice. I will tinker further

    I do get data from Serial1 in the main loop, and Serial3 in the thread. Not sure how to implement the Mutex thing.
    I will have to look into...
  37. Replies
    24
    Views
    1,924

    Can anyone assist with pausing a thread? I...

    Can anyone assist with pausing a thread?

    I have a thread that is collecting data each second, and it's working fine.

    Reading the library notes, I believe you can pause and resume the threads,...
  38. Replies
    18
    Views
    1,668

    Many thanks. I believe my current setup is...

    Many thanks.

    I believe my current setup is probably not quite correct then (not at that laptop at the moment, so doing this from memory)... I think I may be trying to do this the way I did...
  39. Replies
    24
    Views
    1,924

    Yes. After further investigation, I think I may...

    Yes. After further investigation, I think I may end up making the problem just as bad, but in a different way.
    I would imagine I will run into issues with the serial ports 1 and 3, as their use...
  40. Replies
    24
    Views
    1,924

    Threads... possibly going to cause issues?

    Hello all

    I have a program that runs in a loop, and issues DMX values as required, depending on the state of 5 buttons. Pretty simple.

    The DMX values are set up to either switch on and off...
  41. Replies
    18
    Views
    1,668

    If I switch to transmit, send the data and then...

    If I switch to transmit, send the data and then switch back to receive immediately (as follows), it's clearly going to not send the data as the direction status will change too quickly.
    What would...
  42. Replies
    18
    Views
    1,668

    Thanks. . Complicated! The DMXserial library...

    Thanks. . Complicated!

    The DMXserial library for Arduino has pin 2 allocated to go high automatically when transmitting and return low after transmission. I wondered if the Teensy library did the...
  43. Replies
    18
    Views
    1,668

    Thanks Shawn I have 'freed up' a second serial...

    Thanks Shawn

    I have 'freed up' a second serial port in case I need it, but I am going to being using the project as primarily a receiver with the occasional command sent.
    Therefore I can leave it...
  44. Replies
    4
    Views
    521

    So: I have this at the start of my routine: ...

    So:

    I have this at the start of my routine:

    #include <PZEM004Tv30.h> // Mains AC monitoring...
  45. Replies
    4
    Views
    521

    Thank you Mark, I will have a go with that. ...

    Thank you Mark, I will have a go with that.

    It's similar to my attempts, but I have failed so far. Google did not come to the rescue.


    #define NUM_PZEM 5
    PZEM *pzem_array[NUM_PZEM] = {...
  46. Replies
    4
    Views
    521

    Setting up an array

    Hi all.

    I have this following sub-routine that checks for data from a PZEM mains voltage monitor. It all works fine.

    But, I have five of these modules on the serial bus and for the life of me,...
  47. Replies
    18
    Views
    1,668

    Question regarding TeensyDMX.h

    Hello all

    I have been tinkering around with a Teensy 3.2 and the TeensyDMX library.
    Has anyone experience of this library?

    My question is regarding 2 way DMX communication. I am reading...
  48. Replies
    14
    Views
    1,400

    Thanks My sampling of 8 timings into an array,...

    Thanks

    My sampling of 8 timings into an array, binning the oldest one each loop seems to work well. I have eliminated all the jitter.
    We are up and running well. I have it sampling all 14...
  49. Replies
    14
    Views
    1,400

    Solved. Constantly sample 8 micros() timing...

    Solved. Constantly sample 8 micros() timing values into an array (shifting them all along each time and binning the oldest) and then divide for the average.
    Write that out to the servo using:
    ...
  50. Replies
    14
    Views
    1,400

    It's all working. My issue is the variance...

    It's all working.

    My issue is the variance in reported values.
    The PWM value returned from the 14 channels varies each 'loop' from approx 920 to around 2050. I can deduct an offset of say...
Results 1 to 50 of 147
Page 1 of 3 1 2 3