i'm totally noob to programming but i found a project that i really interested and decided to build it but currently stuck on the compiling and flashing the program to atmega 328p. can anyone help me please ?
If you want to replicate that project then you need the hardware the project uses.
Hardware
/bmw_bt_cdcemu_digital/ - KiCAD digital board. Contains the IBus transceiver, BT module and Atmega328p microcontroller
/bmw_bt_cdcemu_analog/ - KiCAD analog board. Contains the differential to single ended amplifier and power line filtering with power off functionality controlled by EN12 pin on the digital board
i did build the hardware. currently struggling to compiling the original software. i cant open it on arduino ide. i downloaded the atmel studio too but cant seems to open the project and compile it.
problem is i dont witch program to use to even open it.i did try with atmel studio but cant seems to open entire project only single file. code is on the github page firmware folder.
Hi,
Apart from the github where else did you get information on this project.
The github site only gives hardware details and bluetooth firmware.
I cannot find any Arduino base code.
There is reference to 328 but not to Arduino from what I can see.
Open the bmw-ibus-bluetooth-master/firmware folder from the unzipped project.
Create a file named firmware.ino. Assuming you're using Windows (since you mention Atmel Studio), you only need to right click > New > Text Document, then change the name of the generated .txt file. Make sure the file is named firmware.ino, not firmware.ino.txt. Windows likes to hide file extensions by default.
That dummy .ino file will allow the Arduino IDE to open the project as a sketch since the Arduino IDE requires at least one .ino file in every sketch, although the .c and .h files used in this project are also supported. After doing this I was able to successfully compile the sketch for Arduino/Genuino Uno using the Arduino IDE. I don't know whether it will actually work but I don't see any special magic in the Makefile so I think there's a good chance that it will.
Hi,
If i was you I would be getting onto Aplejohn.
From what I can see of the video, he/she likes to show how things work but are a bit short handed when it comes to publishing any proper documentation on how anyone else can do it.
Okay you have some code and PCB layouts and circuit, but if they don't tell you how to load what software, its a bit of a loss if you don't know where to start.
Pity because of the amount of effort and coding that must have gone into the project.
Just to have his/her smarty phone controlled from the steering wheel buttons.
Glad to hear it. It would be helpful if you added a comment to your issue report with a summary of the steps needed to use the project with the Arduino IDE (or just a link to my instructions if that's all that was necessary). Even if the author of the project decides they don't want to support usage with the Arduino IDE, others with the same question may be helped by finding that information in your issue report.