Search results

  1. XRAD

    XRAD'S Teensy 4.1 USB host reading garbage from ESP32, need guidance to fix...

    In case anyone is interested, here is the RPLidar C1 code to to parse data correctly without using esp32/USB/serial port: #include <Arduino.h> // Use Hardware Serial 1 on Teensy 4.1 (Pins 0 and 1) #define LidarSerial Serial1 // Slamtec standard request byte markers const uint8_t SYNC_BYTE =...
  2. XRAD

    XRAD'S Teensy 4.1 USB host reading garbage from ESP32, need guidance to fix...

    Thank you both, works perfectly now. Teensy USB sees this from RPlidar C1: A: 302 D: 9365 A: 312 D: 2652 A: 312 D: 2844 A: 322 D: 1756 A: 333 D: 2076 A: 333 D: 2076 A: 343 D: 1948 A: 322 D: 2205 A: 322 D: 1631 A: 333 D: 3871 A: 302 D: 8992 A: 85 D: 32 A: 136 D: 4064 A: 157 D: 1312
  3. XRAD

    XRAD'S Teensy 4.1 USB host reading garbage from ESP32, need guidance to fix...

    Great explanation! Thx Paul. That was part of my confusion....everything that I read said that the USB port speeds were basically set (why I said 'pass through'). I did not realize that setting host end userial baud sets the usb peripheral device onboard or dongle CP2102 connection to the...
  4. XRAD

    XRAD'S Teensy 4.1 USB host reading garbage from ESP32, need guidance to fix...

    Thx jmarsh! Key statement: Because the Arduino IDE is setting the baud rate of the CP2102. If you connect the ESP32 to the Teensy instead, it has to do the same thing. Even though you think your explanation is explicit, not explicit for everyone. I thought I was learning from AI! Thx Paul...
  5. XRAD

    XRAD'S Teensy 4.1 USB host reading garbage from ESP32, need guidance to fix...

    I set "To set your ESP32 (using a CP2102 converter) to 460800 baud, use Serial.begin(460800); in your setup() function. This initializes the hardware UART0 (connected to the CP2102) to the specified rate" ..there is no call espressif for userial.begin()... My arduino IDE sees the esp32/CP2102...
  6. XRAD

    XRAD'S Teensy 4.1 USB host reading garbage from ESP32, need guidance to fix...

    Thank you. OK, but I think as a USB host, the teensy can read data at "The Teensy 4.1's USB host port supports speeds of 1.5Mbit/sec, 12Mbit/sec, or 480Mbit/sec, depending on the device connected" which is way faster than my esp32 UART is getting data from the lidar device. I don't think I...
  7. XRAD

    XRAD'S Teensy 4.1 USB host reading garbage from ESP32, need guidance to fix...

    And, BTW, the Teensy myusb sees the data every 1 second like it should, it seems to be a matter of parsing/bit timing, and not that I am not getting data.... and the arduino IDE serial reads this at 460800 from the esp32, no issues to at least 5324 seconds : Data packet: 5317 Data packet: 5318...
  8. XRAD

    XRAD'S Teensy 4.1 USB host reading garbage from ESP32, need guidance to fix...

    Sooooo...UARTs on my wroom module: ...'0' is the native USB, '1' is the native memory writer, and the last one '2' is being used by the RPlidar C1.....so, without using softwareSerial, i'm left with reading off the native USB (which is a challenge I would like to solve). The reason the teensy...
  9. XRAD

    XRAD'S Teensy 4.1 USB host reading garbage from ESP32, need guidance to fix...

    Hello, Working on a project using RPLidar C1 tof scanner. BUT FIRST, I am just trying to read simple esp32 'counting' data output on myusb teensy 4.1. I am reading data via Teensy 4.1 myusb from a wroom esp32 dev module. I wired the USB wires to the teensy per teensy instructions. I have tried...
  10. XRAD

    XRAD'S teensy 4.1 scrolling TFT display using memset and frameBuffer, but from SD, not onboard mem

    NM!...I will add 8Mb psram chip to teensy board.
  11. XRAD

    XRAD'S teensy 4.1 scrolling TFT display using memset and frameBuffer, but from SD, not onboard mem

    I can get a great scrolling 500x500 tft display using onboard memory. I can save data to SD, but I can;t figure out how to read SD data and implement it onto new screen frameBuffer(why: I want to have a larger storage for an x,y LIDAR occupancy map)....I did try quite a few ways before asking...
  12. XRAD

    XRAD'S Issue with FADE or BLINK teensy 4.0

    Hi Mark, thank you for reply! I figured it out late last night..... this code works in case anyone wants to use it: harware: Teensy 4.0 and x2 one color 5v LEDs with 200ohm resistors unsigned long CLEAR_LED_Timer = 0; unsigned long LED_BLINK_Timer = 0; unsigned long LED_FADE_Timer = 0; int...
  13. XRAD

    XRAD'S Issue with FADE or BLINK teensy 4.0

    even with a simple button press, same issue. Maybe has to do with not updating LED state when I switch functions... maybe I need a global updateLED(); function... #include <LEDFader.h> unsigned long LED_BLINK_Timer = 0; //unsigned long LED_FADE_Timer = 0; int value = 0; int brightness = 0...
  14. XRAD

    XRAD'S Issue with FADE or BLINK teensy 4.0

    updated code, but no change to initial issue.... any help MUCH appreciated! #include <LEDFader.h> #include <Ultrasonic.h> Ultrasonic ultrasonic(2, 20); int distance; unsigned long US_Distance_Ping_Timer = 0; unsigned long LED_BLINK_Timer = 0; const int LED_RIGHT_EYE = 4; const int...
  15. XRAD

    XRAD'S Issue with FADE or BLINK teensy 4.0

    I have tried many variations of FADE and BLINK non blocking code (not just what is here below), but the same issue persists. Either will work fine without the other in the loop. The FADE and BLINK functions do not work together in the loop, and the FADE seems to block the LED display. I'm...
  16. XRAD

    Bring back the Teensy 3.2 !

    THANK YOU bboyes! Look forward to getting some of these when produced.
  17. XRAD

    Bring back the Teensy 3.2 !

    Thx for the link, Angelo. :((n) I already have a stack of 4.0's and 4.1's.........just in case these get terminated, too
  18. XRAD

    Bring back the Teensy 3.2 !

    Paul, I do not know all the financial,patent, or technical issues regarding the 3.2, but really, PLEASE consider another run of these AWESOME processors! For all the beginners like me, the 5v tolerant pins are so easy to use with SO many projects. They always work perfectly with arduino IDE and...
  19. XRAD

    Bring back the Teensy 3.2 !

    Good point. just yesterday I noticed that the 3.2 was at 18mA and the 4.0 was at 44mA in the same device.
  20. XRAD

    Bring back the Teensy 3.2 !

    Thx for reply. lol...10,000 not for me...for everyone. THX for the link! jmarsh, look at the positive side of things! Mouser has: In Stock: 14,829 (as low as 7$ each)
  21. XRAD

    Bring back the Teensy 3.2 !

    Have you seen the prices for the Teensy 3.2 leftovers...175 -1000$!...sheesh...I really miss the 5v tolerant pins!!!! Made my build life so easy.... Paul, can you bring it back?? the MK20D processor is 13$ on digikey.... How about a run of 10,000??? Please. I have been pulling them from my...
  22. XRAD

    Teensy 4.0, 'disabling' an analogRead pin

    So I switched the cap over to the sensor input side of the voltage divider(Thx MarkT), and re-adjusted the slope calculation for the new voltage drop, and with a little tweaking of slope, I am now getting steady and fairly accurate readings. THX for everyone's help!
  23. XRAD

    Teensy 4.0, 'disabling' an analogRead pin

    yep, the regulated 3.3v, not 5v. I will get rid of the 4k7. My voltage divider circuit is similar to above, but without the diodes. I thought the cap (mine is a 10nf) went from the divided resistors to ground? not the input signal to ground?? I have this as my voltage divider:
  24. XRAD

    Teensy 4.0, 'disabling' an analogRead pin

    thx for replies! I read about the diode setup. I just don't have any on hand and was wondering about other options via code. I will give the diodes a try. Something like this? THX!
  25. XRAD

    Teensy 4.0, 'disabling' an analogRead pin

    I have a 5v output analog pressure sensor. It does not output > 3.3V until 70psi. My system does not go over 60psi. BUT, just in case I do exceed 70psi, I was thinking that : if (psi <= 69) { analogRead (sensorPin);} if (psi>=70){ digitalWrite(sensorPin, LOW);} this works, in that the pin is...
  26. XRAD

    RIP Teensy 3.2

    The Teensy 3.2 was my FAVORITE board. It always worked with many different products and code. Thank you Paul for creating it. I was lucky to obtain a few extra......
  27. XRAD

    TEENSY 3.2 not working with <Servo.h> anymore

    Hi Paul, THX for reply. I got tired of uninstalling and reinstalling Arduino and libraries. I will definitely not hit the arduino 'update' button for at least anther year!! lol I ended up using your PWMServo.h which worked perfectly....of course... For those of you with left over Teensy...
  28. XRAD

    TEENSY 3.2 not working with <Servo.h> anymore

    There was that error initially. I removed all Servo.h files and reinstalled older version, and then updated to newest. I do not have that error anymore. these are the src files...no ARM M4... this is the current and only error: In file included from...
  29. XRAD

    TEENSY 3.2 not working with <Servo.h> anymore

    Using example sweep in servo, I get this now: c:\Users\Stupid\Documents\Arduino\libraries\Servo\src/Servo.h:67:2: error: #error "This library only supports boards with an AVR or SAM processor." 67 | #error "This library only supports boards with an AVR or SAM processor." | ^~~~~ I...
  30. XRAD

    XRAD'S need help displaying one char at a time, Translucent OLED teensy 3.2

    solved with help here: https://forum.arduino.cc/t/xrads-need-help-displaying-one-char-at-a-time-translucent-oled-teensy-3-2/1022471
  31. XRAD

    XRAD'S need help displaying one char at a time, Translucent OLED teensy 3.2

    I have this bit of code. It works as written. It draws next char in array as first char of line, and each iteration shortens the displayed chars string by -1. BUT, this is opposite of what I want to do. i want to draw each array char after the last one as if someone is typing on the screen...
  32. XRAD

    XRAD'S Translucent OLED SSD1309 128 x 64 Not displaying anything...teensy 3.2

    YES. 3.3v works. Everything good now Thank you all!
  33. XRAD

    XRAD'S Translucent OLED SSD1309 128 x 64 Not displaying anything...teensy 3.2

    Hello All, I have tried different pin configs in software and hardware for the OLED. I have tried several SSD1309 libs as well as the DFRobot lib...nothing works... hardware: DFRobot 1.5" translucent OLED Teensy 3.2...
  34. XRAD

    XRAD'S Teensy 3.6 read write to SD x/y integer coord pairs

    In case anyone interested, I solved this data store and rewrite to TFT in the code below. I seem to have two remaining issues: 1) my north - south coordinates produce a slanted line (northeast to southwest..off by about 45 degrees), rather than true north south, while east west is just fine...
  35. XRAD

    XRAD'S simple digital switch, need help with component design...

    thank you for replies! I tried digitalread as well. Did not work. I am really looking for any schematic corrections to the wiring dgm or ideas for another way to sense the 'contact circuit'.....or a better way to build the HIGH /LOW sensor circuit for the teensy to 'sense'....
  36. XRAD

    XRAD'S simple digital switch, need help with component design...

    I am trying to build a water sensor with the design in the image below (JUST the high water sensor). I have substituted a 2n3904 for the BC548C (because I don;t have any of these). I thought they were similar enough to work...but...no luck. I want the RED led to come on when water is sensed(the...
  37. XRAD

    XRAD'S randomSeed teensy 4.1 question..RGBW screen saver

    TY for reply, but why does randomSeed 'work' in the basic program, but not with my screen saver....That is my confusion...
  38. XRAD

    XRAD'S randomSeed teensy 4.1 question..RGBW screen saver

    nevermind, I (EDIT: DID NOT) figured it out. It was the line of code containing the modulo operator (0-9). I eliminated this and randomSeed() works fine now.... :) randomSeed still not 'random".... :(
  39. XRAD

    XRAD'S randomSeed teensy 4.1 question..RGBW screen saver

    I know there is an entropy lib, but I want to use randomSeed() as the necessary randomness is minimal. The basic arduino sketch reading teensy A2 does generate different numbers on boot. But when I apply the arduino sketch to my screen saver, the randomness goes away (and the boot sequence...
  40. XRAD

    Teensy 4.1 and adafruit breakout ATWINC1500... parsing data issue

    Yes, I have tried out that tool, really cool! TY for the string education! 3072 works for both the CURRENT and FORECAST strings buffers...3000 does not....That seems pretty close.....so I left it at 4000...I knowwwwwwwwww......lol.... why? in case openweather changes its reply length...maybe?
  41. XRAD

    Teensy 4.1 and adafruit breakout ATWINC1500... parsing data issue

    I tried a few other things like changing client timeout and string terminators and length. I wonder why teensy (Stream) readStringUntil only has a length of 120? seems odd...doubt it's a memory issue...maybe left over from older Stream arduino processor requirements? . I read through some of...
  42. XRAD

    Teensy 4.1 and adafruit breakout ATWINC1500... parsing data issue

    Thx Manitou. i will try out ardinojson 6.....
  43. XRAD

    How to protect a Teensy 4.1 pin from higher voltages?

    Great thread! So I'm curious at the reaction speed of the zenner or schottky diodes in the above diagrams as everyone posted. PO describes a possible 24v overvoltage, but does not say if it is a fast or slow rising change...... PO asks about 'bypassing' the diodes... which leads me to...
  44. XRAD

    Teensy 4.1 and adafruit breakout ATWINC1500... parsing data issue

    Never Mind! All good now. THX Manitou, your code snippet worked fine. I just had a '}' in the wrong spot, which I think made my code save only a partial string to the buffer. Thanks Again! Now I will try to find out why your logic worked and readStringUntil('\n') does not.....
  45. XRAD

    Teensy 4.1 and adafruit breakout ATWINC1500... parsing data issue

    Hi Manitou! thank you for reply. I followed your instruction but on the T4.1, I am still getting: You're connected to the network Starting connection to server... connected to server current: parsingValues parseObject() failed hmmmmmm.... Do you have a T4.1 to try my code on? Did my...
  46. XRAD

    Teensy 4.1 and adafruit breakout ATWINC1500... parsing data issue

    Maybe it's a wifi library compatibility issue? Anyone have an idea?
  47. XRAD

    Teensy 4.1 and adafruit breakout ATWINC1500... parsing data issue

    i guess i found two issues. 1st: I'm am NOT getting a good reply to my call (missing lots of data)using teensy 4.1, and reply is different than with the M0 so on teensy call, I GET this reply for current weather...
  48. XRAD

    Teensy 4.1 and adafruit breakout ATWINC1500... parsing data issue

    I have this sketch working perfectly with adafruit feather M0 wifi ATWINC1500, but I want to use my teensy 4.1 for my project. I can connect to wifi and openweather.com with my API and 'GET' my data string using adafruit ATWINC1500 breakout...but I can't seem to parse it. I am using arduinojson...
Back
Top