Search results

  1. G

    Noisy encoder signal on industrial robot.

    I must admit I've never used any maths functions on my scopes. I scope both an and b of my differential channel with reference to 0v (single ended) and I scope between an and b to get the differential signal with the common mode noise gone. (using differential probes) Anything that Is jumping...
  2. G

    pretty sure i let out the smoke

    Hello RNoble. Sorry to read about you blowing up components. These ws281x leds work well with rs485 transeivers. It's a common way to interface with these leds and you will have no more flicker issues. I use the standard max485 cheap ones but there are some made for really high fault levels...
  3. G

    Noisy encoder signal on industrial robot.

    Unfortunately its very difficult to get to the encoders. I could swap encoder and cable at the controller end to prove it is the cable and encoder, but that has risks i need to feel comfortable with. This hoist runs a master slave setup. Were if i were to swap encoders, and somehow the...
  4. G

    Noisy encoder signal on industrial robot.

    Hi MarkT Not easily, that would/has only be done when the machine won't run due to an encoder issue. Even moving cables (and the encoder attached to the end) between inputs needs carefull consideration before doing. The problem is these encoders need a knuckle boom to access, permits, hire...
  5. G

    Noisy encoder signal on industrial robot.

    Hello All. I'm after some feedback on noise I'm seeing on some encoder wiring. I put together a video to communicate the issue to a previous electrician who worked on the equipment. I thought there might be someone in this community that enjoys solving problems like this, and it does happen to...
  6. G

    Help with some code

    Hello morind79. I looked up the TaskScheduler library and the readme suggest it allows something with results equivilant to concurrent processing. I'm guessing your tasks can use some idle time, like when the motors are running, and instead of a delay callback a function that listens for your...
  7. G

    SSI Encoder sniffer timing advice

    It's taken a month but I have my ftm class to make using a teensy 3.2 ftm module in input mode easier for my purposes. In case it can help anyone else: https://github.com/gibbedy/teensy-3.2-ftm-input-mode
  8. G

    SSI Encoder sniffer timing advice

    Hello All. I have a need to sniff an absolute encoder going to a machine at work. It uses the SSI protocol where the controller sends clock pulses and the encoder sends back data bits at each rising edge of the clock that it sees. Using a teensy, I started off simulating a master SSI device...
  9. G

    Can one preset the state of a gpio pin before setting as an output?

    Thanks for the test setup and explanation. Code and scope trace answers all questions. Thanks.
  10. G

    Can one preset the state of a gpio pin before setting as an output?

    Paul: Thanks. MarkT: What i'm wanting to do is change a pin from an input to an output at runtime, but I wan't it to start at a particular state (either high or low). I thought the code you posted would do that too, but it doesn't. What i gather from testing is that PinMode will imediatly set...
  11. G

    Can one preset the state of a gpio pin before setting as an output?

    Thanks. Is there a way to acheive this? That is, changing a pin to an output with a pre-defined state.
  12. G

    Can one preset the state of a gpio pin before setting as an output?

    using a teensy 3.2. I thought doing a digitalwrite before setting a pin as an input pre-set the state the pin would take when set to an output. I could not get this to work. Can someone confirm this is true or not? Thanks Gavin.
  13. G

    Teensy 4.1 runs existing program but will not upload or allow 15s wipe

    Hello all. My Teensy 4.1 is sitting on the bench with only header pins attached. I can load up serial monitor in the Arduino IDE and see that an old sketch is running and sending messages. I can't upload, times out and usual program button push doesn't get things going. But more interestingly I...
  14. G

    ESP-32 if logic is broken or i am broken

    I tested and even with compiler warnings set to "none", a teensy4.1 gives you the warning at compile time where with esp32 dev module it doesn't so it's treated differently like you suggest.
  15. G

    ESP-32 if logic is broken or i am broken

    A summary of this: What happened: Illogical runtime logic was occurring. An if statement block was being executed at runtime, where debugging print statements showed the conditions inside that statement block would mean the if condition should have evaluated to false. What caused this: I was...
  16. G

    ESP-32 if logic is broken or i am broken

    defragster, Thankyou so very much. Failing to return a value from a function was the cause of this situation. I should have come here sooner. Thanks. Gavin.
  17. G

    ESP-32 if logic is broken or i am broken

    Hello defragster. All print statements are in there to make sense of what illogical situation is going on. The if condition is met by having a value of deltaTime > 1000, and yet it prints the deltaTime value as 0 inside the if's statement block... yet it doesn't print the nested if condition...
  18. G

    ESP-32 if logic is broken or i am broken

    Not a teensy but i need help on this. I have one of those dev board aliexpress 38pin jobs. The controller is labled ESP-32. How is it possible that I get this terminal output (when the PE input is pulsed on and off: deltaTime = 0 This should not be happening! deltaTime = 0 This should not be...
  19. G

    New to Coding. I just want to make 4 midi push buttons work. I have loaded what was recommended and I am at a loss. Not sure what else to do.

    Hi diggable. I can relate to the point your at in your at with your coding knowledge. As Paul has suggested we would need to see the code… but can I suggest you put a freeze on making changes to the hardware. That last picture looks good. The software is likely incorrect if you are not...
  20. G

    New to Coding. I just want to make 4 midi push buttons work. I have loaded what was recommended and I am at a loss. Not sure what else to do.

    Hi Diggable. It looks like you want to get this project going as fast as possible. Here is my take on your question and thread replies so far and where you could go from here to get the best results. The code comments in your original post provide what i belive are adequate instructions on how...
  21. G

    PWM help

    rayjorgensen‘s ultimate goal is driving a solenoid with Pwm. He started by requesting help in getting one to switch at all as this wasn’t working for him.The discussion has been around that. Or are you asking why one would want to drive a solenoid with PWM. I’m interested in the reason now...
  22. G

    PWM help

    Like paul says, and I probably should have said.. get a diode on there. I looked up my notes on that project and I measured 450V from the 12VDC solenoid valve I was using when switched instantly using some wire!!. I'm not fully convinced I tested correctly because of how hight it was but I...
  23. G

    PWM help

    When I was looking for a logic level driven mosfet for low fuss I chose an IRL540N https://pdf1.alldatasheet.com/datasheet-pdf/view/88237/IRF/IRL540N.html. Ignore whatever the device name is in there as I have selected whatever I could find in the easyeda library. I used it with 5V but 3.3v...
  24. G

    PWM help

    perhaps the device really doesn’t work from 3.3V like it says it does. You could test that with some wires,3.3v and a multimeter. or perhaps your wiring on the teensy is wrong.. missing ground connection.. need to power off and double check with a meter what you think you know.
  25. G

    Creating a small arduino library best practice questions

    @AndyA Thanks, that clears a few things up for me regarding headers. I’m motivated to go back to a project and re-organise with classes and separate compilation units if for nothing else than to see how much i can speed up compilation and understand this process better. I Think I will change...
  26. G

    Creating a small arduino library best practice questions

    I don’t think I’ve really understood the function of headers. If I’m understanding what you’re saying I’m now wondering why I see #ifndef,#define,#endif stuff around arduino headers. The benefit of enforcing only one instance of the class is to prevent the programmer from accidentally doing...
  27. G

    Creating a small arduino library best practice questions

    Hello. I have a simple task I find myselft doing repeatedly in Arduino projects, timing sections of code to see how long they take to run. I've finally (after 5 years) got the hardware of an 8x8x8 ws2811 LED cube mounted safely where the cat won't destroy it and i intend to work on animations...
  28. G

    Easy LED panel wiring with custom PCB

    I downloaded your simulator and i like it. It has given me some ideas. Thanks. Note to others like me who may not have known you will need to do a pip install pygame to run the simulator. (but it does say that in the instructions)
  29. G

    having problems with teensy 4.1 burning up.

    Arduino uart rx idle high?
  30. G

    having problems with teensy 4.1 burning up.

    I think your schematic needs to accurately represent how it is actually wired to get more usefull responses. I'm curious if those "sonic" wires are really 5v and go directly to your teensy io. I'm not sure the result is good regardless of how the gpio is set.
  31. G

    How can we program for changing wav file playback speed with Teensy4.0 + Audio Adaptor Boards?

    Thats a nice looking enclosure. I don't think there is an audio design tool to do speed or reverse playback. I think you could read the wav file and manipulate the data however you need to to and use the queue tool from the audio design system to send your speeded up or slowed down or reversed...
  32. G

    Teensy 4.1 program compiles fine, but upload attempts fail

    Is it possible in ANY way for successfully compiled code to cause a failed upload like you are saying? I don't think so. Is it possible running code could cause an electronic issue say pulling a supply low and cause uploads to fail? I think so. I don't know the answers to these but hoping...
  33. G

    How can I avoid having to press the reset button

    Occasionally when i go to upload a program it doesn't work. This happens in windows and linux and I have my theories as to why but... regardless I press the button and without having todo anything else the code is uploaded. That same functionality is what I want when this issue happens to my...
  34. G

    How can I avoid having to press the reset button

    Ok. So I think I will put a pushbutton from this “program” line to ground through a 1k resistor sound good? Then if things go wrong I can walk over and give it a push.
  35. G

    How can I avoid having to press the reset button

    Correction, a power cycle did fix it just now.. I think i have a diode/cap setup that needed a longer discharge.
  36. G

    How can I avoid having to press the reset button

    Thanks Bri. I overlooked this. (didn't look at all :( ). so does the active-low reset pin do the same as the program pushbutton? I know power cycling doesn't allow me to re-program.
  37. G

    How can I avoid having to press the reset button

    I have a teensy 3.6 in an LED cube that is a bit of a hassle to get at. I have a raspberry pi zero connected locally that I use to upload new code to the cube. Sometimes I get the following error when uploading using teensy_loader_cli version 2.1: "Error opening USB device: No error". My usual...
  38. G

    Power problems with T4

    It could be the battery voltage going too low under load, it could be the current limit on your buck converter. Invest in a variable current limited power supply and do some more testing is my advice. Gaivn.
  39. G

    Advice on program construction - DMX

    It’s probably been 10 years but I should ask for my money back
  40. G

    Advice on program construction - DMX

    For example I just copied your post #27 into chatgpt. No changes. The answer it fired back is correct and pretty clear.. if it wasn't you could ask "hey i don't get that bit explain in more detail" and it would. Just be aware it can lie sometimes but programming stuff I don't think it really...
  41. G

    Advice on program construction - DMX

    I find chat gpt quite good for this sort of stuff. When it does give me something that doesn't work right i just tell it and it fixes the issue. If you haven't used it for this sort of stuff it is quite amazing.
  42. G

    Advice on program construction - DMX

    I have a feeling allot of the blanks in my knowledge could be filled in efficiently with a few face to face conversations but forums don’t really do it.
  43. G

    Advice on program construction - DMX

    But when your program is big I think it makes sense to seperate headers and definitions because it makes it easier for me to look at what function prototype is without searching through heaps of code for it.
  44. G

    Advice on program construction - DMX

    You know the ide may not care what the file extension is. Although I think if you include a “somename.h” and fill it full of function and class headers (is that the right word) and then. Use one of those functions or classes I’m thinking the compiler automatically looks for a “somename.cpp”...
  45. G

    Advice on program construction - DMX

    See how briComp did it. #include <AccessPublicVariables.h> Because he made a file with that file name. As far as I understand it just cooies that file and puts everything in where you place the #include line.
  46. G

    Advice on program construction - DMX

    am I right in saying you started with one 4000 line “.ino” file and want to make your code more readable. You could just separate the file however it makes sense and put them in seperate files and just “#include” those.
  47. G

    Advice on program construction - DMX

    Hi Steve. Several things about your post have me interested and would love to see those 4000 or so lines of code. Interesting bits: For eight years I've updating hardware and software on some christmas lights (about 3000 ws2811 leds) which has roughy 8000 lines of code and incoherent comments...
  48. G

    Flightsim control

    If you can do it on a keyboard or joystick I’m going to guess yes.
  49. G

    Voltage level of gpio input

    Do these work by driving each row gpio output low sequentially and checking all the column inputs to see if any of them are pulled low?. If so what voltage are the column inputs pulled up to? What value of pull up resister are you putting on them? I ask because I think when i was reading the...
Back
Top