On Sun, 15 Jun 2025 at 18:08, MJ via GLLUG <[email protected]> wrote: > > In foundation degree I was forced to do some C#, but I was not the brightest > of students. > I am not an IT hopeful, or candidate for this industry due to my > conscientious objections. > However due to the lack of off the shelf device to do the thing I need for my > DIY ebike > I need to be scratches ; LaUGHS INSIDE > help pretty pls > > I have idea what the code must do and what libraries must be on SD card. > TA > --
Hi, Arduino programming is quite easy. If you are not too sure, try to write down what you want it to do. Aim: "I wish to update the distance travelled each second" e.g. 1) Read the speed sensor. 2) Read the time of day. 3) Use those two read values to calculate the distance travelled. 4) wait 1 second. 5) go round the loop again to step 1. That sort of thing. Then from that you can then think about how you convert each step into arduino code. Another option, you can try bing copilot. https://copilot.microsoft.com/ You would ask it: "Please show me an example arduino code to read the speed and time and display the distanct travelled, updated once a second." Kind Regards James -- GLLUG mailing list [email protected] https://mailman.lug.org.uk/mailman/listinfo/gllug
