Lil' Blackbox

Coding => v2.0 => Topic started by: samirakle on June 06, 2021, 04:20:48 PM

Title: Possible To Control The Actuator Motor With Just a CAN Shield & Arduino?
Post by: samirakle on June 06, 2021, 04:20:48 PM
I seem to be treading into a ghost forum as of right now. I probably won't get a response but if anybody sees this I'm hoping that I can be pointed in the right direction:

What I'd basically like to do is send CAN bus commands to the actuator with an Arduino and some coding. Is this possible or do I need to hook up a bunch of other hardware?

I'm thinking of just sending can bus commands through the J1939 data lines that would just command the motor the rotate in either direction at different angles/values.

I've tried to make sense of the code provided here but I'm not very code savvy. I can't seem to figure out where this function "send_turbo_position(data)" came from as I can't see where it's been defined. I'm assuming this is what stores the PGN, SPN, and data to be transmitted to the actuator?

Thanks in advance!
Title: Re: Possible To Control The Actuator Motor With Just a CAN Shield & Arduino?
Post by: hakcenter on June 06, 2021, 10:18:36 PM
I wouldn't try too hard deconstructing the code if you can find the function methods  :o

It's not dead here just very very slow. There was a dead year, and now everyone wants a 351ve back on their vehicles and I guess I'm the last option left now :D
Waiting on manufacturers to finish the next unit run /shrug
Title: Re: Possible To Control The Actuator Motor With Just a CAN Shield & Arduino?
Post by: Rx7man on June 07, 2021, 12:54:06 AM
I watch the forums here, though i"m low on the totem pole :P
you can control the actuator with just a can shield and arduino, but you'll be missing the VR sensor input in particular to sense turbine speed which is an important part of the Lilbb code
Title: Re: Possible To Control The Actuator Motor With Just a CAN Shield & Arduino?
Post by: Muffinzs on June 08, 2021, 09:11:53 PM
hakcenter are you doing both shields and standalone in this run?
Title: Re: Possible To Control The Actuator Motor With Just a CAN Shield & Arduino?
Post by: hakcenter on June 13, 2021, 09:18:04 PM
Quote from: Muffinzs on June 08, 2021, 09:11:53 PM
hakcenter are you doing both shields and standalone in this run?

I have shields being made right now, they are baron only. No one wants to put them together for me, which is why I designed them with through-hole

I'm having a problem with the standalones at the moment
Title: Re: Possible To Control The Actuator Motor With Just a CAN Shield & Arduino?
Post by: samirakle on June 14, 2021, 04:35:54 PM
Quote from: hakcenter on June 06, 2021, 10:18:36 PM
I wouldn't try too hard deconstructing the code if you can find the function methods  :o

It's not dead here just very very slow. There was a dead year, and now everyone wants a 351ve back on their vehicles and I guess I'm the last option left now :D
Waiting on manufacturers to finish the next unit run /shrug

Ah so you guys ARE alive! Nice! Well, I ended up figuring out the CAN bus commands for the calibration procedure. Not sure what the other options I tried really do, especially since I didn't have it bolted onto an actual turbo yet.

I'd like to be able to test the actuators for calibration functionality on a bench now. With my lack of coding experience/knowledge that's probably going to take me a while though 😬

Quote from: Rx7man on June 07, 2021, 12:54:06 AM
I watch the forums here, though i"m low on the totem pole :P
you can control the actuator with just a can shield and arduino, but you'll be missing the VR sensor input in particular to sense turbine speed which is an important part of the Lilbb code

Yep, I think I've succeeded in sending a single repetitive command to the actuator at this point. I'd like to be able to control the position of the motor manually with just code. Although, using a pot would be even cooler.
Title: Re: Possible To Control The Actuator Motor With Just a CAN Shield & Arduino?
Post by: Rx7man on June 23, 2021, 03:27:13 AM
to get anything meaningful from the actuator, it's gotta be on the turbo, and you can have the turbine housing off and watch it move if you like

should be pretty easy to make it controllable with just a pot
Title: Re: Possible To Control The Actuator Motor With Just a CAN Shield & Arduino?
Post by: decathect on June 26, 2021, 10:12:05 AM
I've got a setup ready to go on my truck, at this point i'd take either the standalone or the shield if those will be more readily available!
Title: Re: Possible To Control The Actuator Motor With Just a CAN Shield & Arduino?
Post by: hakcenter on June 27, 2021, 08:54:35 PM
Shields are up and available in self assembly options only. I do not have the time to solder anything together.