It's also a very good practice to expose as little as possible inside .h file. Only those things that are needed for the other .c/.cpp files.
For a sensor interface for example don't expose internal info to get the sensor working.
Edit: With...
Yup, #include just includes the contents of another file, as if you had typed it all. Simple stuff really.
Except things can get complicated quickly if you include that same header file from multiple .cpp / .ino files. Then it is the same as...
Did take a look at the schematics.
For
Teensy LC there's a PTC "fuse" of 350mA
Teensy 3.2 there's a PTC "fuse" of 500 mA
between Vusb and Vin. So total mA must be lower.
On the Teensy 4.0 I don't see a PTC "fuse" between Vusb and Vin.
May I...
Let's put newlib rebuild off until at least 1.61.
After we wrap up the Black Friday Sale tomorrow, I'm going to go on a sprint to get MTP merged, and then a series of beta releases leading up to 1.60 release with MTP.
Might merge some other...
It's pretty close, but a couple small issues. You want PROGMEM on the array holding the actual const data, so it doesn't consume any RAM1 memory. In setup() where you call memcpy, use sizeof() because memcpy wants the actual number of bytes...
Be sure that you're start 'init' table is only inside flash. I can image that "static" only means that it will be copied to standard RAM and that you end up with 3 copies: 1 in flash (to initialize from), 1 in standard memory and 1 inside DMAMEM.
Hi if a Teensy (LC,4.0 or 4.1) is powered from USB (PC or power bank), how much is available to Vin from a Teensy point of view.
Situation: Setup that will be powered from PC or USB power bank. When using the USB power bank I need current to...
Hi
Is there an easy way to increase the eeprom allocated size?
For example using the 4.1 amount on a 4.0?
Or adding a second "eeprom" type of memory on other flash locations and maybe with a word size of 4 bytes instead of 1.
Nice equipment ;-)
I suspect it to be accurate and repeatable enough. The start of the braking will be the most inaccurate step, but that's more a "group decision" of which moment to take. Teensy wise that seems to be a easy sensor.
I just checked typical braking distances for trains. This about 300-600 meters distance going from 100 km/h to zero.
I think the accurate GNSS receivers (less than 1 meter stand alone) will do just fine. The start of the measurement is more...
Future Teensy with will USB-C. I can't discuss any other details at this time. I probably should not even write this message, but hopefully it at least answers this 1 simple question.
Back in 2023, a friend and I developed a logger for race cars. The logger was based on the Sparkfun SparkFun GPS-RTK Dead Reckoning Kit (SMA).
This module uses a UBlox ZED-F9R, which integrates a high-end GPS chip with accelerometers and...
Because GPS speed isn't based on position change. GPS calculates speed based on the doppler shift of the signals. If you know where the satellites are and the component of your velocity towards or away from them then you can calculate your...
I'm a bit surprised: The GPS is a positioning device and speed is calculated from those positions.
Why would speed then more precise than location?
BTW. Am I correct that the NEO-6P receiver is limited to 5Hz updates? Or more than 5meter at...
I suspect that the sparkfunLG290P type of receiver (+antenna) will give a far better accuracy. If I read the docs correctly 0.7meter absolute without RTK. This far better than "normal" GNSS receivers. It will give almost certain far better...
Considering that you're "trains" are running on tracks, it becomes a one dimensional system (I hope ;-) ). Also I expect rather big distances and repeat tests.
So you can determine a lot of the errors when testing the system (don't have to...
Sparkfun has such a system, including a better antenna. Gives cm precision.
Mmm can also be used with one unit. It will give a far better accuracy than a "normal" unit.
I agree with MarkT. If you use the larger packages like TO-220-3 with a suitable heatsink (but consider what the potential on the tab is, and whether you need an isolating "silpad" or mica sheet in between; Mouser/Digikey/etc. sell these and...
Thanks, made things clear.
Now I'm considering :
A buck DC-DC convertor to 10 V.
Add a 5-10W 12V LED strip to it (yes undervolted on purpose)
and then a LDO circuit to 5V with a Teensy where I try to keep the watts low (lower Mhz and maybe...
But the TLV75733P on the Teensy has an absolute maximum input voltage of only 6V, so it is that linear regulator that may go bork if a voltage spike occurs.
Let's say you have buck regulator outputting 6V, with at least 4.7µF capacitance on the...
Ah, I see what you mean. You are looking for a pre-made PCB, like the ones for the LM2596, not something you have to build a circuit for? If that's the case, I'm not sure which other ready-made voltage regulators are available. The LMR51430 would...
Hi
After consideration and some searching on the forum I think of using 2 LM2596S DC-DC convertors, bot on the same input:
AZ-Delivery LM2596S DC-DC with display
(The voltage display is handy, but not really needed, but I like the screw...
I would use a buck to 7V-9V, and a robust linear regulator down to 5V, with datasheet-suggested capacitors before and after.
DC-DC converters can have issues like overshoot at very low loads or overshoot spikes at certain fault conditions...
Note: I am not an EE so take this with a grain of salt!
In some of my earlier boards for playing around with robotics, I would use a NIMH or Lipo type battery to power
my board. With some of them I used some form of buck converter.
Some of...
I would strongly suggest to keep the files size below a maximum that's far below 4GB. I suppose those files are to be moved around and that's slow for big files. Also if it's 1 file you have to wait until it's downloaded totally. When you...
Hi
I'm trying to add a smart automated close to a garage door. Open is "detected" with unregulated power 24-36V -max. 34V!- (and motor noise?) to a pair off wires, it can deliver 1A. While the motor is running there's also a classic bulb...