Search found 10 matches
- Wed Jun 01, 2022 12:14 pm
- Forum: ESP-IDF
- Topic: How to use "twai_filter_config_t"
- Replies: 9
- Views: 14051
Re: How to use "twai_filter_config_t"
Hi, I finally understood how Dual Mode Filter works. Fully tested and it works very well, I'm getting only the expected ID's :-) Setup: ESP32 mini (mhetesp32devkit) + SN65HVD230 + PlatformIO VSCode + PEAK USB-CAN sniffer to simulate CAN messages Lib CAN by Michael Wagner (miwagner): https://github.c...
- Wed May 25, 2022 3:49 am
- Forum: ESP-IDF
- Topic: How to use "twai_filter_config_t"
- Replies: 9
- Views: 14051
Re: How to use "twai_filter_config_t"
This Right side MSBit is for sure confusing but still, I'm not able to manage Dual Filter Mode. https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/peripherals/twai.html#acceptance-filter Anyone who could post example code for Multiple ID Filter Configuration please? Here are m...
- Fri Aug 14, 2020 10:55 am
- Forum: General Discussion
- Topic: Running a MCP23017 on 5V
- Replies: 14
- Views: 22488
Re: Running a MCP23017 on 5V
Cool, thanks Apuder :-) BTW, what MCP23017 lib are your using? They are several but I haven't find yet any "advanced" lib" incuding Debounce, Longpress, Rizing & falling-edge detection. So far, with classical button connected to GPIO, I was really in love with YABL, Yet Another Button Library (for A...
- Thu Aug 13, 2020 8:06 am
- Forum: General Discussion
- Topic: Running a MCP23017 on 5V
- Replies: 14
- Views: 22488
Re: Running a MCP23017 on 5V
Thanks you very much for all your valuable comments. My I2C: ADS1115 : 100kHz, 400kHz, 3.4MHz ADS1115 : 100kHz, 400kHz, 3.4MHz MCP23017 :100kHz, 400kHz, 1.7MHz I don't want to apply several I2C bus's, so I will have to limit to 400kHz. For 400kHz with 5cm bus, internal R's should be OK. At least, it...
- Tue Aug 11, 2020 6:40 am
- Forum: Hardware
- Topic: MCP23017 i2C very slow
- Replies: 7
- Views: 11549
Re: MCP23017 i2C very slow
Yes, same results... (100kHz - 800kHz). Faster then 800kHz didn't work at all, no idea way. According to the spec 1,7MHz should work. Thanks for your support. 800khz maxi could be due to your pull-up resistors applied to SDA and SLA. Internal ESP32 pull-up are 30...80kOhm depending on manufacturers...
- Tue Aug 11, 2020 6:22 am
- Forum: General Discussion
- Topic: Running a MCP23017 on 5V
- Replies: 14
- Views: 22488
Re: Running a MCP23017 on 5V
I'm gonna to do MCP23017 +5V supply with fast I2C ESP32 3.3V and INTA/INTB. I will have a short I2C length (5cm), so I'm not sure if I really need strong pull-up resistors (5kohm) for SDA and SCL at 400kHz or 1.7MHz. So, I think that I will first test with the internal 30...50kohm pull-up ESP32. If ...
- Sat May 02, 2020 9:09 am
- Forum: Hardware
- Topic: About the CAN controller.
- Replies: 175
- Views: 344799
Re: About the CAN controller.
Be aware that they are some "FAKE" transceiver based on VP230 (SN65HVD230) !!! I've lost days with 2pcs CJMCU-230 coming from the same supplier on Aliexpress. They were almost working at low speed (125kb) & only for few seconds at 500kb... Forcing High Speed mode with Rs connected to GND did not he...
- Tue Apr 14, 2020 9:30 pm
- Forum: ESP-IDF
- Topic: Can Bus off
- Replies: 3
- Views: 7750
Re: Can Bus off
Thanks to this CAN.c modified and shared by Spintec (big thank you!), I moved 1 step forward. At least now my CAN sniffer Win10 tool (PEAK CANsniffer USB compact) is able to writte to my ESP32: - ESP32 + CJMCU-230 (SN65HVD230, 3.3v) - 500kbit/s with Standard 11b - 3 PDO's sent every 5000ms, 1000ms a...
- Tue Apr 14, 2020 2:43 pm
- Forum: ESP32 Arduino
- Topic: Using the official CAN driver
- Replies: 9
- Views: 25131
Re: Using the official CAN driver with Arduino
As you, I need to keep Arduino with my ESP32 project with CAN bus. I tried your basic exemple (CAN standard 11bit, 500kb) but it does not work. Don't forget to add Serial.begin(115200) is in Setup() if you want to get the messages. "CAN Driver installation success" & CAN Driver start success" are no...
- Tue Apr 14, 2020 11:50 am
- Forum: ESP32 Arduino
- Topic: Using the official CAN driver
- Replies: 9
- Views: 25131
Re: Using the official CAN driver with Arduino
Also, as a update, I was able to get the official ESP-IDF CAN driver working perfectly in Arduino This is just basic stuff to get anyone started. #include <driver/can.h> #include driver/gpio.h> #include <esp_system.h> .... [/quote] As you, I need to keep Arduino with my ESP32 project with CAN bus. ...