From £129.90 |
Buy Now Includes the programmer, Windows software, plus a programming adapter (840Z) that allows programming of devices in 8, 14, 18, 20, 28, and 40-pin DIP packages. A-B USB cable not supplied View Datasheet (JPEG, 204KB) |
So I have a need to override a pushbutton (from ON to OFF) and came up with this concept; a solenoid piggyback on a pushbutton switch with a 3D printed cap held by a strand of wire.
...
The sending device has the typical 18F4550 USB setup and it is set to "Define OSC 48". The receiving device is set to "DEFINE OSC 16".
rsocor01 - 24th April 2024, 19:56What is the clock of each PIC you use?
Ioannis
There is probably a little bit of both. I did a search in the forum, but couldn't find anyone having the same issue.
rsocor01 - 23rd April 2024, 23:22By lowering the baud rate you're now allowing device B (and SERIN2) twice the time to receive the bits and assemble the byte.
That's probably what's helping a lot more than any line noise issue.
...
Tumbleweed, I had very strong suspicions that the issues were in the communication lines. I changed the Baud rate from 19200 to 9600 and I haven't got anymore wrong data at the receiver. I remember...
rsocor01 - 22nd April 2024, 22:35Ioannis, yes I'm doing data validation checks all the time. The first byte of the array is always 174. If this condition is not met, then the reading is discarded.
rsocor01 - 22nd April 2024, 22:26From £129.90 |
Buy Now Includes the programmer, Windows software, plus a programming adapter (840Z) that allows programming of devices in 8, 14, 18, 20, 28, and 40-pin DIP packages. A-B USB cable not supplied View Datasheet (JPEG, 204KB) |
Re: New project - MSFS C++ USB interface
Hall effect switch with small magnet or if there is magnetic field around solenoid coil that the hall effect device can sense
amgen Today, 18:36