Freelander 1 Freelander EV

This site contains affiliate links for which LandyZone may be compensated if you make a purchase.
Nice work! How did you find the AI with the coding Alibro? (in my day, it was called programming, but hey, I am old)
It is much better than you would expect.
You can use ChatGPT or Claude or a couple of others, but I recently switched browser to Brave because it has adblock built in (Which works great in Youtube BTW) but it turns out the default search engine in Brave gives an AI answer to all searches. The other AI's only allow a small number of interactions before they ask for money or say come back in a few hours. I didn't have this issue with Leo and the results seemed to be as good as ChatGPT or any other.

I was taught in 1980 that a programme was something you watched on BBC1, BBC2 or ITV, a program is a piece of code that runs on a computer.
It may have been an Americanism even then but I stuck with it, also I may have misspelled it but if so I stand corrected. 😊

Edit: I just realised you were referring to me calling it coding. Yeah I struggle with that too cause I'm old too but trying to get down with the kids. 🤣
 
just watched the video - ChatGPT made a LOT of mistakes and it looks as though you really need to know a bit of coding (programming!) to see where it’s gone wrong to correct it. But I guess it gives you a start!
 
just watched the video - ChatGPT made a LOT of mistakes and it looks as though you really need to know a bit of coding (programming!) to see where it’s gone wrong to correct it. But I guess it gives you a start!
Yes I found the same with all of them. I know a little about programming and I can follow the logic even if I don't fully understand everything but as you say it did all the hard work for me so all I needed to do was tweak it a bit.
 
Last few days I've been playing with the VCU firmware trying to figure out if it was possible to have regen.
It should hopefully help improve the range a bit but even more important it should take some pressure off the brakes.
At the moment the brakes are great but probably over worked without any engine braking so a little regen should help.
The reason I haven't done this before is when it comes to Arduino coding I'm thick! My Mrs would say I'm thick in many ways but that's another story.
Anyway I recently watched a video where a Youtuber was using AI to generate Arduino code so figured it was worth a try.



So after several days playing with it I've finally got regen working.
There are two ways regen works in EV's, first when you lift off the throttle which gives a gentle slowing down effect and second when you press the brake pedal which is much stronger. In my case I can't easily have lift off regen because I need to lift off to change gear. In theory I could rig up a switch to stop the regen as I change gear but that's a lot of complexity. Maybe some day.
In the meantime I use the brake light switch to trigger the regen by just touching the brake pedal, it starts low and ramps up over a set time which is currently 850 milliseconds and provides fairly strong retardation, I've seen up to 100A going back into the batteries.
It probably needs a bit more tweaking but for the moment I'm happy it's working so I'll get back to setting up a timer to start charging at 2am for the cheaper leccy.

If you need a switch to indicate that you are changing gear rather than just coasting... maybe you could add a 3rd pedal :rolleyes:

AI is just an exceedingly over used term because it is trendy. Nothing (yet) really is AI.

Originally programs were written in machine code (0s and 1s), then assembler came along to make this "more human readable" that converted it to machine code, then languages like Pascal, Fortran, COBOL etc that took what you asked it to do and spat out assembler or machine code (or intermediate code that was 'intelligently' interpreted at 'run time'. I believe these are 1GL, 2GL and 3GL. Then there were 4GLs, 5GLs etc that took the programming input to a higher levels more separated from the way computers actually perform the tasks requested. These were mainly sold as ways to speed up building programs. What you say about generating code is simply just an extension of this to output Arduino code.

However, what you have found is that everything has limitations and you have had to adapt its output. What you will then find is that if you want to modify your input to this 'AI' - ie give it more requests to fulfil, you will have to start all over again fixing the output it produces to actually work. It won't take your working code and be able to build on it. I'm pretty sure it won't be that 'intelligent'.
 
If you need a switch to indicate that you are changing gear rather than just coasting... maybe you could add a 3rd pedal :rolleyes:

AI is just an exceedingly over used term because it is trendy. Nothing (yet) really is AI.

Originally programs were written in machine code (0s and 1s), then assembler came along to make this "more human readable" that converted it to machine code, then languages like Pascal, Fortran, COBOL etc that took what you asked it to do and spat out assembler or machine code (or intermediate code that was 'intelligently' interpreted at 'run time'. I believe these are 1GL, 2GL and 3GL. Then there were 4GLs, 5GLs etc that took the programming input to a higher levels more separated from the way computers actually perform the tasks requested. These were mainly sold as ways to speed up building programs. What you say about generating code is simply just an extension of this to output Arduino code.

However, what you have found is that everything has limitations and you have had to adapt its output. What you will then find is that if you want to modify your input to this 'AI' - ie give it more requests to fulfil, you will have to start all over again fixing the output it produces to actually work. It won't take your working code and be able to build on it. I'm pretty sure it won't be that 'intelligent'.
I agree that the term is massively over used. AI has been around for years in one form or another. Computers have been playing chess and other strategy games since the ZX80 came out and even earlier so that was a type of AI.

But the difference now is it is so much better it's actually useful. It was able to read my question, recognise the context, interpret what I was trying to achieve and provide an answer. No the answer was not perfect but I couldn't have written the code myself, at least not the clever bit that ramps up the regen over a set time.
For me it is both impressive and scary at the same time because if it can do this today then what will it be able to do in five or ten years.
 
Could you use a clutch switch to disable regen when changing gear ? There must be a mount for one to allow for peeps that added cruise when purchasing new ?
 
The clutch bracket does indeed have a bracket for a microswitch (which is generally unused - I guess a legacy thing from earlier versions of the HDC etc)
 
You guys are probably right and TBH I had considered reinstating the clutch for this but I don't think it would be worth the effort. I've been playing with the settings and it works great as it is, and you know the old saying? "Keep it simple STUPID"
This is especially true where throttle control is involved, I've already had one of the main programmers in Openinverter tell me I'm being reckless using AI to help write code that controls the throttle and he has a point. In my defence I'm able to test up and down my lane before taking it onto the road and the road is a quiet country B road so the testing is being done in pretty safe circumstances.
Also I'm still hoping to get a pedal set from an Auto cause I like the extra big brake. ;)
 
Which two gears do you use most? First and reverse already have switches (for HDC) so adding one to second would not be too much hassle?
 
Back
Top