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

Search:

Type: Posts; User: Ben

Page 1 of 9 1 2 3 4

Search: Search took 0.01 seconds.

  1. Thread: Modbus RTU

    by Ben
    Replies
    48
    Views
    16,191

    not for testing, but I'll use RS485 half duplex....

    not for testing, but I'll use RS485 half duplex. That's actually defined and required by the modbus standard. I have transceiver ICs in the mail and will spin a quick test board once they arrive. I...
  2. Thread: Modbus RTU

    by Ben
    Replies
    48
    Views
    16,191

    Thanks Paul. Unfortunately I don't own any modbus...

    Thanks Paul. Unfortunately I don't own any modbus devices. My use case is a diy sensor bus in my home, with a sensor node in each room for temperature, humidity, light level etc. The node will also...
  3. Replies
    8
    Views
    1,252

    using while(true) prevents exiting loop. I'm...

    using while(true) prevents exiting loop. I'm completely guessing here, but maybe that inhibits something important that usually happens between loops?
  4. Be very careful when trying. If the device is...

    Be very careful when trying. If the device is powered by 3.3V it's more or less safe to try. If it is powered by 5V it will most likely drive signals to a logic high voltage of near 5V, which is too...
  5. Thread: Modbus RTU

    by Ben
    Replies
    48
    Views
    16,191

    Will do, give me a few days.

    Will do, give me a few days.
  6. Replies
    12
    Views
    2,407

    Yes. In the picture neurofun posted, carefully...

    Yes. In the picture neurofun posted, carefully look at the connector. There are only four wires, the connectors lowest position is empty.

    You can also see this on the teensy pinout diagram when...
  7. Replies
    12
    Views
    2,407

    The two pins furthest from the micro-usb...

    The two pins furthest from the micro-usb connector on the Teensy are both grounded, you only need one of those. Be careful with orientation when plugging in. 5V is closest to the onboard micro-usb...
  8. Thread: Modbus RTU

    by Ben
    Replies
    48
    Views
    16,191

    I'm considering a rewrite with some improvements...

    I'm considering a rewrite with some improvements like proper timeout handling and allowing to configure more parameters at runtime (such as slave address and baud rate) so these can be fetched e.g....
  9. Thread: Modbus RTU

    by Ben
    Replies
    48
    Views
    16,191

    Here's a version that works for creating Modbus...

    Here's a version that works for creating Modbus Masters and Slaves with a Teensy using hardware serial ports:


    /**
    * @file ModbusRtu.h
    * @version 1.21
    * @date 2016.02.21
    *...
  10. Thread: Modbus RTU

    by Ben
    Replies
    48
    Views
    16,191

    Hmm that might be a too high goal for my...

    Hmm that might be a too high goal for my programming skills, I'd be happy with the RTU mode working on Teensies. I'll try to test the code I posted in #10 when I have the time and maybe reintroduce...
  11. Replies
    3
    Views
    1,572

    I know of two product ranges with even lower...

    I know of two product ranges with even lower resolution: Melexis https://www.melexis.com/en/product/MLX90640/Far-Infrared-Thermal-Sensor-Array and Panasonic GridEye...
  12. Thread: Modbus RTU

    by Ben
    Replies
    48
    Views
    16,191

    Sounds good, would you paste your code here so I...

    Sounds good, would you paste your code here so I can have a look?
  13. Thread: Modbus RTU

    by Ben
    Replies
    48
    Views
    16,191

    I'm looking for a good Modbus-library as well. It...

    I'm looking for a good Modbus-library as well. It seems the one Epyon linked is hard-coded for a specific Arduino board as it expects exactly four hardware serial ports.
    From my limited...
  14. Replies
    2
    Views
    2,634

    I'm not aware of a Eagle .sch, but this page is a...

    I'm not aware of a Eagle .sch, but this page is a good start. There are links to forum posts on this page that are also very helpful.
  15. Replies
    16
    Views
    4,014

    I didn't know this, but I'd expect the Teensy to...

    I didn't know this, but I'd expect the Teensy to maintain the duty cycle through PWM frequency changes. So is this a bug or documented behaviour (apart from "documented in the code")? If it's neither...
  16. SerialFlash.begin always returns true, even when no SPI flash is connected

    Hi,

    I today tried to determine if an SPI flash IC is connected by checking the SerialFlash.begin return value. Turns out the function returns true unconditionally.

    I reproduced this with a...
  17. Replies
    7
    Views
    1,373

    there are 6 layers of copper in and on the teensy...

    there are 6 layers of copper in and on the teensy board. as copper tends to "smear" when cut, there is a high chance of creating shorts between layers with this smeared copper. So no, it is not save...
  18. Replies
    19
    Views
    2,785

    You can use EEPROM.put(address, variable); to...

    You can use EEPROM.put(address, variable); to store variables of any size in the EEPROM. Make sure to increase the address by the size in bytes when storing the next value.


    uint16_t aTwoByteInt...
  19. Hi, I think I solved this myself :) ...

    Hi,

    I think I solved this myself :)


    #include <FastCRC.h>

    struct S1 {
    uint32_t foo = 0x1234CDEF;
    float bar = 1.0f;
  20. Union containing struct -> union constructor gets auto-deleted

    Hi,

    I'm using a Struct for some calibration data, this way I can easily save and load the data from EEPROM using EEPROM.get and EEPROM.put. This works great, now I'd like to add a CRC checksum...
  21. Replies
    387
    Views
    113,425

    If you can get your hands on SAC101 solder balls...

    If you can get your hands on SAC101 solder balls (SnAg1Cu0.1) that would be worth a retry. SAC101 is optimized for mobile devices, where shock resistance is of more importance than temperature...
  22. Thanks, thats exactly the behaviour I need.

    Thanks, thats exactly the behaviour I need.
  23. Replies
    4
    Views
    1,098

    This is the amp on the prop shield:...

    This is the amp on the prop shield:
    https://www.pjrc.com/store/lm48310.pdf
    it is rated from 2.4V to 5.5V. On page 7 you can see the diagrams for THD+N vs Output Power, it shows about 1W into 4 Ohms...
  24. Replies
    18
    Views
    4,249

    Have you tried using the exposed D+ and D-...

    Have you tried using the exposed D+ and D- signals on the T3.2 bottom pads to attach a more durable usb port? maybe you can connect to them with a via cut in half on your mother board, like it is...
  25. Thanks for your help! No I didn't know about...

    Thanks for your help! No I didn't know about these lines. That's excellent, I can just test register 0x4003E01C for that "magic number" to see if the RTC has been reset to compile time. Great, thanks...
  26. I thought about my problem a bit more and I think...

    I thought about my problem a bit more and I think I'm using the Time lib and the RTC wrong. The library reports "timeSet" because it has synced successfully to the internal RTC. So even if I used...
  27. Time lib on T3.6 using internal RTC falsely(?) reports time is set

    Here's a sketch to recreate my issue. My Win7 machine needs the delay(), sorry:
    Arduino 1.8.1, Teensyduino 1.35 on Windows 7 SP1.No errors or warnings during compile/upload (verbose output enabled)....
  28. The datasheet "hints" are a good start. Look at...

    The datasheet "hints" are a good start. Look at the upper left diagram, the one with "Input NPN Output NO". You'll want to use this one. Virtually any npn-transistor will do, as the currents and...
  29. If the Teensy sets the mosfet control pin into...

    If the Teensy sets the mosfet control pin into high impedance state "by accident", the gate charge can be retained on the mosfet gate for quite some time, it's best to have a resistor from the gate...
  30. I don't understand why they use optocouplers at...

    I don't understand why they use optocouplers at all, the relay alone should provide enough isolation in itself :confused:

    A solid state relay (SSR) might be the quickest and least error-prone way....
  31. Replies
    137
    Views
    35,739

    Did you order on aliexpress? They really seem to...

    Did you order on aliexpress? They really seem to be an exact clone.

    I may have access to an IC decapsulation machine later this year, might be fun to compare the dice :)

    I tried the...
  32. Replies
    137
    Views
    35,739

    Yes, there's the Filter Design Tool from the...

    Yes, there's the Filter Design Tool from the university okawa-denshi (Japan) that does an excellent job for analog filters up to 3rd order: http://sim.okawa-denshi.jp/en/Fkeisan.htm
    The tool is...
  33. Thread: Pwm on teensy 3.1

    by Ben
    Replies
    13
    Views
    2,887

    Hi, I'm on vacation right now, so I'm sorry I...

    Hi,
    I'm on vacation right now, so I'm sorry I can't try anything myself at the moment. You could try to set up an ISR that updates the duty cycle of all the PWMs and call it regularly. Toggle a pin...
  34. Thread: Pwm on teensy 3.1

    by Ben
    Replies
    13
    Views
    2,887

    Hi, when you use the Arduino IDE with...

    Hi,

    when you use the Arduino IDE with Teensyduino to program your Teensy in C++, you can use some very powerful high-level commands to control the PWM. No need to look into timers and overflow...
  35. Hi, the amp meter measures the current by...

    Hi,

    the amp meter measures the current by letting it flow through a low-value resistor ("shunt resistor") and measuring the voltage drop across this resistor. So by introducing the meter into your...
  36. I think you mixed something up. Or maybe I did,...

    I think you mixed something up. Or maybe I did, anyway, I get different numbers:
    Apollo RAM: 2048 x 16bit = 32768 bit = 4096 Byte = 4kBytes
    Teensy RAM: 64 kBytes
    Apollo ROM (Program Memory): 36864...
  37. A comparison in computing power between two...

    A comparison in computing power between two computing systems is possible in many different ways. You could look at the technical specs like how much RAM is available, how fast is the CPU, how wide...
  38. Replies
    8
    Views
    1,987

    About 60Hz is only true for non-moving...

    About 60Hz is only true for non-moving applications. Even 100Hz may be visible if your eye does quick "scanning" movements across the LEDs (or the LEDs move), because that will leave an afterimage on...
  39. Replies
    3
    Views
    1,789

    This will of course void any warranty, but you...

    This will of course void any warranty, but you can file down the sides of the teensy until only half of the PCB through-holes are left, then use that as a "castellated" connection for PCB-to-PCB...
  40. Thread: Microscope

    by Ben
    Replies
    8
    Views
    2,093

    I don't know about the model The Goddess uses,...

    I don't know about the model The Goddess uses, but I can recommend using a binocular microscope (that gives you a stereoscopic impression of depth) with either fix magnification of about 7x or...
  41. Replies
    12
    Views
    3,120

    That's good news :cool: I'm impressed you...

    That's good news :cool:
    I'm impressed you followed through with this project and even reported back after such a long time. Much appreciated :)

    Ben

    Edit:
    Regarding the Teensy 2.0 and voltage...
  42. Replies
    2
    Views
    937

    The Teensy 3.2 has a voltage regulator that...

    The Teensy 3.2 has a voltage regulator that supplies 3.3V from the 5V it gets from USB. This is used to power the audio adaptor as well as the IC on the Teensy itself. Does the Teensy run the simple...
  43. Thread: K66 Beta Test

    by Ben
    Replies
    1,558
    Views
    529,426

    I updated the spread sheet to include Prop Shield...

    I updated the spread sheet to include Prop Shield and Audio Adapter Board pinouts:

    Download here:
    https://www.dropbox.com/s/23yl6hxqmp0h2u9/T3.6pinoutDiagram.ods?dl=0

    Screenshot:
    8154

    It's...
  44. Replies
    10
    Views
    9,130

    The cool thing with the Teensy 3.x is that it has...

    The cool thing with the Teensy 3.x is that it has built in DSP instructions for 16 bit fixed point math, so if you stick to fixed point you can do quite a lot CD-quality audio processing on the...
  45. Replies
    3
    Views
    1,026

    If you are designing a PCB and you have a few...

    If you are designing a PCB and you have a few square mm to spare you could include footprints for the pullups and just don't populate them if you find out you don't need them.
  46. This might be an issue with unstable power...

    This might be an issue with unstable power delivery due to losses in the long strands of conductor. Try adding a second 5V and GND line to the end of the strip (in parallel, from the same power...
  47. As far as I remember, you can do this, but you...

    As far as I remember, you can do this, but you need to call myTimer.end(); between two .begins.
    Only four timers may be active simultaneously, even less if you use other libraries that use timers.
    ...
  48. Thread: K66 Beta Test

    by Ben
    Replies
    1,558
    Views
    529,426

    Not as pretty as the card, but with a bit more...

    Not as pretty as the card, but with a bit more information (I2S, Ethernet, Native Port)

    8085

    It's a LibreOffice Calc file (*.ods) which you can download here:...
  49. The ICs inside the LEDs run from a 5V supply, the...

    The ICs inside the LEDs run from a 5V supply, the Teensy outputs 3.3V as a logic "high". 5V-Devices may or may not recognize 3.3V as logic high, as it is not very close to their supply voltage. This...
  50. Thanks, this looks very nice. I wish I had the...

    Thanks, this looks very nice. I wish I had the time to build a panel myself, but at the moment I don't see this happening until at least February :rolleyes:

    I'd love to have a physical, tangible...
Results 1 to 50 of 402
Page 1 of 9 1 2 3 4