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
    24
    Views
    1,665

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

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

    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.
    ...
  3. Replies
    18
    Views
    1,424

    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
  4. Replies
    18
    Views
    1,424

    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...
  5. Replies
    24
    Views
    1,665

    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...
  6. Replies
    18
    Views
    1,424

    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...
  7. Replies
    18
    Views
    1,424

    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...
  8. Replies
    24
    Views
    1,665

    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...
  9. Replies
    24
    Views
    1,665

    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() {
  10. Replies
    18
    Views
    1,424

    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...
  11. Replies
    24
    Views
    1,665

    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!
  12. Replies
    24
    Views
    1,665

    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. ...
  13. Replies
    24
    Views
    1,665

    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...
  14. Replies
    24
    Views
    1,665

    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,...
  15. Replies
    18
    Views
    1,424

    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...
  16. Replies
    24
    Views
    1,665

    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...
  17. Replies
    24
    Views
    1,665

    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...
  18. Replies
    18
    Views
    1,424

    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...
  19. Replies
    18
    Views
    1,424

    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...
  20. Replies
    18
    Views
    1,424

    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...
  21. Replies
    4
    Views
    438

    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...
  22. Replies
    4
    Views
    438

    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] = {...
  23. Replies
    4
    Views
    438

    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,...
  24. Replies
    18
    Views
    1,424

    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...
  25. Replies
    14
    Views
    1,242

    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...
  26. Replies
    14
    Views
    1,242

    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:
    ...
  27. Replies
    14
    Views
    1,242

    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...
  28. Replies
    14
    Views
    1,242

    No, nothing else configured on pins 20 and 21. ...

    No, nothing else configured on pins 20 and 21. Those pins work fine as analog pins. Odd

    Well, it seems OK at the moment. I just added a counter that increments 14 on each loop. Each returned...
  29. Replies
    14
    Views
    1,242

    OK. This is where we are. My Robbe receiver is...

    OK. This is where we are.

    My Robbe receiver is 8 channel. This uses channel 8 to loop onto a second decoder that gives me a further 8 channels (with lower resolution, but fine for auxiliary...
  30. Replies
    14
    Views
    1,242

    I am trying using interrupts. I thought all...

    I am trying using interrupts. I thought all digital pins on a 3.2 where interrupt able, but pins 21 and 20 refuse to work? (Other pins do)
  31. Replies
    14
    Views
    1,242

    Well I didn't realise this was going to be quite...

    Well I didn't realise this was going to be quite so impossible.

    Obviously, PulseIN is a blocking function. I hoped to run the majority of the 'non urgent' channels through an analogue switch and...
  32. Replies
    14
    Views
    1,242

    This works.... int CH2; byte Counter; ...

    This works....


    int CH2;
    byte Counter;

    void setup() {

    Serial.begin(9600); // Serial Begin
    pinMode(20, INPUT); ...
  33. Replies
    14
    Views
    1,242

    Hmm ...

    Hmm

    https://www.pjrc.com/teensy/td_libs_PulsePosition.html

    Got my receiver hooked up, using pin 20. Common receiver and Teensy ground and it doesn't receive the PPM signal.

    I have checked...
  34. Replies
    14
    Views
    1,242

    14+ PPM inputs?

    Hello ladies and gentlemen.

    I am currently designing the controller for my radio controlled submarine. I am using a Teensy 3.2 (because I have one)

    I however, need to read the PPM signal from...
  35. Replies
    23
    Views
    2,491

    Thanks all. Seeing as 2021 is lining up to be...

    Thanks all. Seeing as 2021 is lining up to be the same as 2020, I have plenty of time to get my head around it all.
  36. Replies
    23
    Views
    2,491

    OK. Wow, this is going to be harder than I...

    OK. Wow, this is going to be harder than I thought.

    Does anyone have any suggestions for a TOTAL IDIOTS guide to ESP8266 stuff?

    From what I can gather, I need to set my ESP8266 as a client,...
  37. Replies
    23
    Views
    2,491

    Thanks all. I am wading through all the options....

    Thanks all. I am wading through all the options.

    My PCB is a custom affair, and has space left ready for a wifi addition. Whether I simply put a header on the pcb for a pre-made module, or...
  38. Replies
    23
    Views
    2,491

    Yea, trying to avoid Ebay. Nothing but scamming...

    Yea, trying to avoid Ebay. Nothing but scamming Chinese crap these days

    But just had a look out of interest and there were none
  39. Replies
    23
    Views
    2,491

    After a quick Google, it turns out that ESP-09's...

    After a quick Google, it turns out that ESP-09's are impossible to obtain easily (in the UK anyway).
    The other options listed above are hugely expensive.

    Found this...
    ...
  40. Replies
    23
    Views
    2,491

    Thank you for these suggestions, I will look into...

    Thank you for these suggestions, I will look into those further.
    I have a PCB for this project, and the second version will have the wifi, so I can easily put the correct footprint on the board for...
  41. Replies
    23
    Views
    2,491

    Smallest wifi module?

    Hello all

    After wading through what seems like 1000 different types/variations of ESP wifi modules, I still have not really found what I am looking for.

    My Teensy based project reads .TXT data...
  42. Replies
    5
    Views
    862

    Thanks Paul. I will get it one day

    Thanks Paul. I will get it one day
  43. Replies
    5
    Views
    862

    OK Paul. How do I calculate that new value? ...

    OK Paul.
    How do I calculate that new value? This is what I am struggling with. How to calculate this stuff.

    My bad maths works out 1.3mA to be 2.65K at 5v. Entirely possible that is wrong...
  44. Replies
    5
    Views
    862

    MOCD208 opto isolator question

    Hello clever folk

    I found an opto isolator circuit online, and have used it before in my circuits for inputting 12v to my projects (circuit attached).

    This circuit (according to the thread...
  45. Replies
    6
    Views
    819

    Thanks for the advice anyhow Frank

    Thanks for the advice anyhow Frank
  46. Replies
    6
    Views
    819

    So... I spent 2 hours trying to get it to upload....

    So... I spent 2 hours trying to get it to upload. Rebooted the PC, reworked all the PCB connections.... swore a lot.

    Walked away, watched Strictly come dancing.

    Came back, plugged it in and...
  47. Replies
    6
    Views
    819

    Yes, I have the page Frank. Thanks. I don't have...

    Yes, I have the page Frank. Thanks. I don't have a schematic yet.
    Its basically exactly the same as the Teensy 3.2 board.

    Just seems very odd that it uploaded perfectly the first time, and...
  48. Replies
    6
    Views
    819

    Teensy 3.2 upload issue

    Hello

    My 'home made' pcb is assembled, all seemed fine. Its basically a Teensy 3.2 lifted and re-assembled onto a new PCB.

    Plugged the new board into the PC. Got the Windows sound etc

    I...
  49. Replies
    0
    Views
    634

    What to use as a host program in Windows

    Hello people

    I have Googled, and found multiple examples of people sending data from their Teensy/Arduino to a PC over Wifi.

    I wish to do it the other way around, and there doesn't seem to be...
  50. Have you thought of supplying the stand-alone...

    Have you thought of supplying the stand-alone bootloader IC's through the UK suppliers of the Teensy main boards Paul?
Results 1 to 50 of 124
Page 1 of 3 1 2 3