Search results

  1. Epyon

    ADC library, with support for Teensy 4, 3.x, and LC

    I also have a question regarding the interrupts. I need to sample both ADCs simultaneously at fixed intervals. I looked into the analogReadIntervalTimer example. This however uses only one ADC to multiplex two pin readings, which has me confused about how to trigger an interrupt when using both...
  2. Epyon

    Synchronised position measurement

    I need to measure the load angle of a generator set, which is the angle between the mechanical rotor position and the electric waveform applied to the windings of the stator. To achieve this I need to make a rotary position measurement of the machine axle, with the measurement exactly...
  3. Epyon

    sizeof() bricks compiler somehow

    I was writing a quick sketch to read an absolute encoder, and then encountered some strange behaviour of both the Arduino IDE, Teensyduino and my T3.2. Commenting out some code, I pinned it down to the use of sizeof(). Sketch A: int inputValues[32]; int grayCode[13]; int binaryCode[13]; int...
  4. Epyon

    Best communication interface for multiple Teensy LCs and 3.Xs

    It would certainly be the most straightforward in both coding and electrical design. There are some catches to using higher baud rates though, see this page (scroll down to usable baud rates). There isn't any real limit to the amount of receivers, it will be limited by how many receivers you...
  5. Epyon

    Modbus RTU

    The problem is that it's still integrated with proprietary code which I need to clean up first. I'm abroad for work till next week, I'll look into it afterwards. My ultimate goal was a merged Modbus TCP/RTU library with the same API. Eventually I settled for two libs with the same API because...
  6. Epyon

    Modbus RTU

    I actually developed a more hardware agnostic version of the library for internal use at my workplace. I was thinking about putting it on Github, but never got around cleaning up the code. So I'm willing to cooperate on this, but my free time is however limited these days :( .
  7. Epyon

    Teensy I/O's ot 5V tolerant

    Almost all shields, sensors etc. for the Arduino are internally 3.3V or have a 3.3V alternative. Save maybe for some power electronics like servos. In almost all cases a simple resistor divider will help you out, unless for something with very strict timing/slew rate requirements. Stay away...
  8. Epyon

    PCB layers for teensy 3.

    It is possible for the 3.2, but requires a significantly larger PCB size and careful routing to achieve optimum impedance. There are no layout files available for any of the official boards. If you really want to start hardware product development, you should be able to make a layout yourself ;) .
  9. Epyon

    BIOS project sanity check.

    Most motherboards still have a speaker header to connect a tweeter that beeps if POST has succeeded. Maybe that can be of use? Also, BIOS initialises the USB. If you could detect this, it would probably mean a successful BIOS boot as well.
  10. Epyon

    how to pick ports for analogRead () on T3.2

    I spread my analog channels over the two ADCs. E.g. if I use two channels, I make sure each one is on a different ADC. I do use analogRead, but if I ever find some time to upgrade my software with the ADC lib, at least the PCB routing doesn't prevent me from using simultaneous reads.
  11. Epyon

    micros() and delay() - novice question

    Yes, of course. Your 'ones inner loop' just evaluates if currentMillis - previousMillis >= interval, and if not increments the loop counter 'ones'. What you did is not a replacement of delay(). You wrote something that will execute the shiftOut code every time currentMillis - previousMillis >=...
  12. Epyon

    Teensy3X as serial communication device uart/ftdi

    Of course, the EchoBoth example is included in every Teensyduino install.
  13. Epyon

    Upload firmware via CANbus

    And now you have an CAN bus between your desk and all your remote devices? :)
  14. Epyon

    Upload firmware via CANbus

    I don't think any of the popular MCU's support uploading code through CAN out of the box. You will need to write you own bootloader for this, just like Paul has done to support uploading code through USB.
  15. Epyon

    Teensy 3.6 DIY Reference Board schematic

    Paul answered this question brilliantly here :) . Anyway, Paul doesn't use Eagle, so don't expect any brd files other than the ones you make yourself.
  16. Epyon

    Protecting analog inputs from overvoltage

    A BAT54S contains two Schottky series diodes with a center tap, but it is only available in SMD.
  17. Epyon

    Protecting analog inputs from overvoltage

    It of course depends on what exactly you want to protect your analog inputs from, but I can confirm that this circuit successfully protects T3.2 analog inputs from regular accidental overvoltages, provided you use Schottky diodes with a forward voltage drop of 300mV or less. If you look up...
  18. Epyon

    5V on analog input teensy 3.2

    I recommend against an opamp circuit. Most opamps are unstable at gains less than 1 and it reduces bandwidth and slew rate. In general opamps make for bad attenuators. Your gain will also depend on the temperature coefficient of the gain resistor. The most straightforward way is still the...
  19. Epyon

    Basic optoisolator advice

    For this I can advice the MOCD208. I use it in all my designs that interface with 24V logic. The main advantage of the MOCD208 is its high CTR. With the resistor value in the schematic above, I can interface with TTL (5V) logic up to industrial 24V systems, while still keeping current draw at...
  20. Epyon

    Upload sketch to teensy via serial1 or any input besides the main input.

    Search the forum for 'Teensy OTA'. There are some makeshift solutions available, but non really recommended for production. My solution is to combine them with a Linux SBC, e.g. the very compact $9 NanoPi Neo, and use Teensy CLI through SSH to reflash the Teensy. This is probably something that...
  21. Epyon

    Using Teensy for industrial control application

    You never 'need' to use Arduino libraries. You can write everything from scratch if you really want to. Wouldn't recommend it, because you would be doing loads of redundant work with next to no gains. It's highly improbable your code will be more efficient or reliable than many of the...
  22. Epyon

    NXP nears deal for Freescale Semiconductor

    So Freescale was acquired by NXP. Then NXP was acquired by Qualcomm. Now Qualcomm is to be acquired by Broadcom. If acquirements lead to acquirements, where will the chain of acquirements end? :rolleyes:
  23. Epyon

    Arduino or C

    I think it depends on what you want to accomplish. If you want to become a C(++) programmer, start with that. If you want to start developing applications on the Teensy or Arduino platform, start with Arduino and switch to C(++) when you really run into the limits the Arduino macros can provide...
  24. Epyon

    Suggest next Teensy with Cortex M7

    There are probably a dozen boards combining processor power such as found in the RPi3 (or even ten times more) with embedded Arduino with all the library support. UDOO being the most common I think (now also available in x86 flavour). The thing is that RPi and Arduino are apples and oranges...
  25. Epyon

    Save file to SD in a different thread (or use interrupts for sampling?)?

    For what it's worth, I once faced a similar problem with a datalogging application. I investigated the possibility of putting SD write access in another thread, but abandoned the idea because of non-deterministic latency on the part of the SD card. When the SD card is shuffling blocks around...
  26. Epyon

    Display for teensy 3.2

    Is the SD card connected directly to the ILI9341, or can you use any SPI connected SD?
  27. Epyon

    Display for teensy 3.2

    The Adafruit version has a micro SD on the back?
  28. Epyon

    Use Sublime Text as an Arduino IDE replacement.

    There's a disclaimer about that in their announcement. Initial support for autocompletion (activate it using CTRL+space) Attention: Launching for the first time is quite slow and will freeze the UI. Don’t worry, simply wait for it to unstick.
  29. Epyon

    Multiple 3.3v and Gnd connections to PCB

    The 3.3V pin below AGND is closest to the LDO. It's best to connect and place components drawing large currents closer to that pin, especially if only using one 3.3V pin. Connecting all GND pins to one low-impedance groundplane on your PCB is almost always a good idea :) .
  30. Epyon

    Suggest next Teensy with Cortex M7

    But does the Pi Zero has deterministic low-level I/O usable without an OS and additional peripherals like external RAM? As far as I can see the i.MX RT is still a microcontroller while the RasPi is a microcomputer.
  31. Epyon

    Advice for Levelshifting wanted

    The TXB level shifters don't work well with pull-ups and open drain, and are generally a bad idea in almost any use case (and I expect pretty much the same from the TXS). The forum (and that of TI) is full of bad experiences with them. Without thinking about it too much, the voltage levels and...
  32. Epyon

    Teensy 3.5/3.6 Ethernet

    Please try first with the Ethernet library that ships with Teensyduino. It is also more optimised. The NBEthernet library doesn't play so well with the W5500 and some routers.
  33. Epyon

    CAN project sanity check

    Okay thanks. I was under the impression that the CAN standard only described the physical media access, like the serial RS standards I'm used to, but apparently it also describes the data link. I've ordered the parts and will update my progress. One more thing though. The HA system bus runs at...
  34. Epyon

    CAN project sanity check

    I understand, but how does the hardware (or the library) know the format and size of the message? Afaik there isn't any global standard for this. E.g. my HA system probably uses its own proprietary message format, and as far as I can see the message (payload) size differs depending the amount of...
  35. Epyon

    CAN project sanity check

    Thanks a lot for the information! The concept of 'mailboxes' seems a bit strange to me. This would suggest the library already interprets the messages on the bus in some way, in stead of just relaying every bit on the bus to the main program loop.
  36. Epyon

    CAN project sanity check

    For my next project, I'm trying to build I/O modules that are compatible with my home automation system which uses CAN bus. All modules have an 8 bit address. Input modules put messages on the bus when certain actions are performed (e.g. pushing a button). Output modules can be programmed to...
  37. Epyon

    Teensy 3.5/3.6 Ethernet

    Because the 3.2 boards don't have the Ethernet MAC integrated. They rely on an external chip implementing it. The 3.5/6 only need the analog stuff like the magnetics and the PHY, which you will always need separately (but not necessarily discreet). It could indeed be put somewhat clearer by...
  38. Epyon

    Teensy 3.5/3.6 Ethernet

    The thread links to other threads, threads that you would also have found with the search function ;) . The specs page is correct. The Ethernet portion clearly states: "A special shield is required to connect an Ethernet PHY chip and magnetics to actually communicate with other computers. "
  39. Epyon

    Teensy 3.5/3.6 Ethernet

    Please use the search, which results in threads like these almost instantly. The native Ethernet support is still very experimental and besides some basic UDP stuff can't do much right now. If you want to join the development, the Teensy native ethernet board is available. Note that you still...
  40. Epyon

    Use Sublime Text as an Arduino IDE replacement.

    Arduino has released a sketch preprocessor that parses any Arduino style sketch into valid C++. By then using Arduino builder this should allow anyone to use almost any IDE to program an Arduino, correct? Paul: how will these changes coming in Arduino 1.9 affect the Teensy(loader) environment?
  41. Epyon

    Modbus RTU

    No, I also don't have any 2.0 hardware. But because it is based on AVR, you can probably use the standard version of the library with minimal editting.
  42. Epyon

    MK20DX256VLH7 out of stock EVERYWHERE??

    It's not just NXP, it's a thing across the semiconductor industry. Microchip, STM, Fairchild/ONsemi etc. We're seeing the wake of the big mergers from the last few years and the corresponding product line rationalisation, just while the market is entering an uptake period and most manufacturers...
  43. Epyon

    Teensy program and libraries to Olimex or similar

    If you are going to produce in quantities you will be designing and fabbing your own boards anyway, so you can expose all the signals you want to. You can add the bootloader chip to the first batch so your product is reprogrammable in the field, or make a 'programming stick' with the bootloader...
  44. Epyon

    I there a "teensy_reader_cli" program?

    Do you want to read flash memory, ram or eeprom?
  45. Epyon

    Is long SPI cable earth shield needed?

    10" or 25cm is about the 'recommended max' length for SPI wiring. If you want to go longer you better reduce the SPI clock and add impedance matching. You can do this by adding 68Ohm of 100Ohm series resistors as close to the driving part as possible (e.g. between the Teensy SPI pins and the...
  46. Epyon

    Frequently Asked Questions

    #How to proper power a Teensy: USB / 5V Vin (trace cutting?) / 3.3V externally / using multiple power supplies (connect only grounds) #My custom Teensy won't boot (Vout33 connected?) I would make a long list, but divide it into topics (Programming tips, Power supply, Analog section, Custom...
  47. Epyon

    Cortex code with Teensy

    If low power consumption is your goal, I'll buy you a beer if you ever get even three micro-amps lower than what is possible with Duffs' Snooze library :p . 6µA on a Teensy LC, 15µA on a 3.x.
  48. Epyon

    Olga

    There is a report button on the lower left of each post :) .
  49. Epyon

    A few questions about teensy 3.6 , leds , and ethernet

    The W5xxx can receive at link speed (+/-80Mbps) if you send short UDP bursts to it that fit within the internal 32kB RAM buffer. The SPI bus on T3.x only runs at 24-72MHz though. It will probably require some low-level SPI code as well, the default Ethernet library leaves a lot to be optimised...
  50. Epyon

    Cortex code with Teensy

    Before going down this path, better to read this and this post. In short, unless you are an experienced developer with a lot of ARM notches on your belt, ditching Arduino/Teensyduino will probably not result in any more performance, stability or control over the chip. Try to optimise your code...
Back
Top