CanSeeNoiseGen

所属分类:自动驾驶
开发工具:C++
文件大小:0KB
下载次数:0
上传日期:2021-07-09 11:52:59
上 传 者sh-1993
说明:  雷诺Zoe的CanSee与车辆噪声发生器插件,
(CanSee with Vehicle Noise Generator add-on for Renault Zoe,)

文件列表:
Hardware/ (0, 2021-07-09)
Hardware/20210617_185216.jpg (3545383, 2021-07-09)
Hardware/20210617_200722.jpg (3980044, 2021-07-09)
Hardware/20210617_202601.jpg (2985909, 2021-07-09)
Hardware/20210617_202718.jpg (2422041, 2021-07-09)
Hardware/20210617_202823.jpg (2866718, 2021-07-09)
Hardware/3d-freecad-model-case.FCStd (2500838, 2021-07-09)
Hardware/3d-model-case-electronics.stl (675084, 2021-07-09)
Hardware/3d-model-case-speaker.stl (634484, 2021-07-09)
Hardware/MF52D-103f-3950 thermistor.pdf (387155, 2021-07-09)
Hardware/Samples/ (0, 2021-07-09)
Hardware/Samples/bang.wav (32172, 2021-07-09)
Hardware/Samples/cobra2886.wav (244940, 2021-07-09)
Hardware/Samples/cobra3209.wav (559788, 2021-07-09)
Hardware/Samples/cobra4360.wav (479132, 2021-07-09)
Hardware/Samples/cobra6823.wav (305580, 2021-07-09)
Hardware/Samples/cobraIdle.wav (331272, 2021-07-09)
Hardware/Samples/horseAngry.wav (146424, 2021-07-09)
Hardware/Samples/horseGallop1.wav (337680, 2021-07-09)
Hardware/Samples/horseGrunts.wav (237446, 2021-07-09)
Hardware/Samples/horseWhinny.wav (482180, 2021-07-09)
Hardware/Samples/porsche3000.wav (260228, 2021-07-09)
Hardware/Samples/porsche3750.wav (334388, 2021-07-09)
Hardware/Samples/porsche5500.wav (666316, 2021-07-09)
Hardware/Samples/porsche7000.wav (785300, 2021-07-09)
Hardware/Samples/porscheIdle.wav (252540, 2021-07-09)
Hardware/Samples/sls2400.wav (146174, 2021-07-09)
Hardware/Samples/sls3000.wav (464638, 2021-07-09)
Hardware/Samples/sls4400.wav (508940, 2021-07-09)
Hardware/Samples/sls6000.wav (365846, 2021-07-09)
Hardware/Samples/sls7250.wav (580900, 2021-07-09)
Hardware/Samples/slsidle.wav (259100, 2021-07-09)
Hardware/ZOE original VSP annotated.jpg (2689912, 2021-07-09)
Hardware/ZOE plug.jpg (1186475, 2021-07-09)
Hardware/adafruit-huzzah32-esp32-feather-info&pinouts.pdf (2418562, 2021-07-09)
Hardware/adafruit-huzzah32-esp32-feather-schematic.pdf (2418562, 2021-07-09)
Hardware/adafruit-i2s-stereo-decoder-uda1334a.pdf (4432102, 2021-07-09)
Hardware/fritzing-schematic.fzz (363064, 2021-07-09)
Hardware/part list.csv (750, 2021-07-09)
Hardware/part list.ods (15223, 2021-07-09)
... ...

# CanSeeNoiseGen CanSee with Vehicle Noise Generator 3.0 add-on for Renault Zoe (pre 2019 models) This is an ESP32 project using VSCode with PlatformIO (Arduino framework), CirculaBuffer library and SdFat library. With the latter the build gets too large to use the standard build partition size, so I had to use a custom.csv in the platformio.ini where I set the partition size to 0x200000. See bottom for installation details. In my ini I also put some monitor flags and filters, which I tried out for debugging and testing. This is only for the serial interface via USB. Everything is based on the wonderful work by Jeroen Meijer and co.: https://gitlab.com/jeroenmeijer/cansee You can connect it to the "V-bus" at the diagnostic OBD port in the car or to the "E-bus" which goes directly to the Zoe VSP (https://canze.fisch.lu/the-pedestrian-horn/) This NoiseGen software is set up for the E-bus. If you want to use the V-bus, you have to change the code in ticker10ms() in CanSee.ino. On E-bus not the same values are sent or different IDs are used. So CanZe won't display all the values. This has been tested on a 2014 Q210. No guarantee that it works on other models. On 2019 or newer models a noise generator is mandatory and an off-switch is not allowed, afaik. There is an integration with CanZe app in development to control the Noise Generator via bluetooth. But I haven't decided yet what to do with it. I might just release the .apk here. In any case, you can use a bluetooth terminal app and send text commands there. See CanSee.ino for reference. --- **More technical remarks:** I have to check how to properly connect the I2S board to the ESP. It seems very sensitive, producing crackling on the audio output easily. The best was to make the wires as short as possible. I also found that connecting the AGND directly to the GND of the ESP board seems to help. I am not sure, why. The manual for the ESP says to put pullup resistors at the I2S pins. But this didn't do anything for me. Regarding SD card reading speed, I have tried different boards and combinations and found that the used components give the best speeds up to 25 MHz. If it is too slow (10 MHz), there will be errors when several samples are played in parallel. --- Short video with some explanations: https://youtu.be/ppg4cpuIZtI Thread in German Zoe forum with more info in German: https://www.goingelectric.de/forum/viewtopic.php?f=63&t=52091&p=1571585#p1571585 --- **Installation instructions:** Warning: All here is work in progress. Don't expect everything working right out of the box. Programming experience is necessary. If something is unclear, open an issue or go to the forum. 1. Install VSCode. 2. In VSCode install the PlatformIO IDE extension. 3. Go to PlatformIO Home (there should appear a bar at the bottom with a house). Then in "Open Project" select this whole folder from Github. Then it should install also the libraries by itself from platformio.ini. Else, you can install them in PIO Home. Also, sometimes it might be necessary to close and open VSCode again so that it finds all the dependencies. 4. Copy custom.csv to \.platformio\packages\framework-arduinoespressif32\tools\partitions (the program is so large that it needs more memory than default) 5. Connect ESP32 via USB. 6. Build the project and upload it with the buttons on the PIO bar at the bottom. 7. For programming look into CanSee.ino and audiohandler.cpp in the src folder. The file names to load from the SD card are hard coded in the audiohandler. 22050 Hz @ 16 bit audio files are used. You can find the samples in the hardware folder. Just copy the folder content to the SD card. With the PlatformIO: Serial Monitor or a bluetooth terminal, you can monitor some parameters and give commands that are defined in CanSee.ino. Attention: The ESP32 and the programm store some configurations options on an EEPROM. For example, you can switch on and off bluetooth and it keeps the state also during power off. When you start the ESP and you don't have bluetooth or the serial output available, it might just be configured like this. See config.cpp for the initial configuration. If you change this configuration later on and upload it to the ESP, in order to actually load the new settings into the EEPROM you have to use the special function setConfigToEeprom(true) or 'z' via the terminal.

近期下载者

相关文件


收藏者