Arduino CAN Shield
Moderators: John Nicol, birkelbach
- John Nicol
- Posts: 611
- Joined: 23 Nov 2011, 12:17
- Contact:
Re: Arduino CAN Shield
Definitely not for V1.0. The specs are really set in terms of the aircraft and putting in FBW is not on the radar just yet.
-----
John Nicol
Founder, MakerPlane
John Nicol
Founder, MakerPlane
-
birkelbach
- Posts: 193
- Joined: 04 Sep 2012, 14:42
Re: Arduino CAN Shield
I just pushed the latest changes up to GitHub. All the features are implemented except for the raw MCP2515 message commands. I guess it still has that bug in it where sending too much data makes it crash. I can't figure it out, so somebody take a look so you can see the obvious buffer overflow or pointer craziness that is causing it. I think I have "code myopia,
" and I've just stared at it for too long. It does seem to work as long as you don't try to write 9 data bytes, so don't do that.
Perhaps someday, I'll load it up in an AVR simulator if the mood strikes me and you guys can't find it, but for now it'll serve it's purpose and I'm ready to start moving some real airplane related data around on my bench.
Re: Arduino CAN Shield
I agree that FBW for MP01 is simply not on the cards for now. But I'm curious as to why you feel that "few will want a full fly-by-wire" and why you have little interest in it.birkelbach wrote:..... Some might want to put sensors on flight controls and log them, but I doubt that there will be more than a few that will want a full fly-by-wire control system in their home built airplane. I know that I have little interest in it, personally......
Is it the safety/reliability issue? Cost? Development effort?
I have practical suggestions for dealing with these issues, but I suspect that the real objection is psychological and subjective - people/pilots feel that it's too dangerous to rely on a reset/reboot button in order to maintain control at 250 knots. They come up with statements like "I will never drive in a car that has pure FBW steering and brakes".
Apart from the above, the list of advantages of FBW is long and I won't repeat it here.
Jeffrey
Bring them home NOW

-
birkelbach
- Posts: 193
- Joined: 04 Sep 2012, 14:42
Re: Arduino CAN Shield
I replace mechanical / pneumatic / hydraulic type control systems with modern computer based control systems everyday at my day job. It's what I do. I have no doubt that a properly designed FBW system can be built and can be built by amateurs. I don't have any problems with the safety aspects, or whether it is doable, and I'd love for my car to drive me to work in the morning.
But, we have to be honest with ourselves on the costs vs the benefits of any part of the airplane. I'm not saying that you guys shouldn't develop it and I'm excited to see it done. I spent a good deal of time thinking about how CAN-FIX could interface with FBW systems and I think it can be used successfully in that environment. FBW is just not for ME. It has no tangible benefit for ME personally.
You said the list of benefits of FBW is long and I probably don't agree with that because, I suspect that the majority of the items on that list can be handled by a flight management system and a two axis autopilot. That's is a far cry from full FBW.
Now if you want to make an airplane stall proof, and so easy to fly that anybody can do it then we are solving a different problem and that would require a FBW system. But this doesn't appeal to me, personally. I already know how to fly and I like the challenge of landing a tailwheel airplane.
I don't doubt that it can be done, and I don't doubt that it can be done safely but it will cost more, be heavier and more complex than the tubes and cables that we use now. It will be less reliable too. I don't mean it'll be less reliable in the sense that it'll crash more airplanes, but there will be a higher rate of component failures in a FBW system. And when a servo fails, it'll have to get fixed before you can fly again. The two you had left got you home safely, but only a fool would fly with a known defect in the flight control system. It's similar to twin engine airplanes. The likelihood of you having a total power loss in flight is less than a single engine airplane, but the likelihood of having ANY kind or power loss is more than a single engine airplane.
Whether a person wants to absorb the costs for the benefits depends on the mission. My dream right now is a rag and tube airplane that might go 100 mph, has the little wheel on the back and can land on a riverbed. The additional cost, weight and complexity of a FBW system just doesn't fit that mission. That's all I'm saying.
But, we have to be honest with ourselves on the costs vs the benefits of any part of the airplane. I'm not saying that you guys shouldn't develop it and I'm excited to see it done. I spent a good deal of time thinking about how CAN-FIX could interface with FBW systems and I think it can be used successfully in that environment. FBW is just not for ME. It has no tangible benefit for ME personally.
You said the list of benefits of FBW is long and I probably don't agree with that because, I suspect that the majority of the items on that list can be handled by a flight management system and a two axis autopilot. That's is a far cry from full FBW.
Now if you want to make an airplane stall proof, and so easy to fly that anybody can do it then we are solving a different problem and that would require a FBW system. But this doesn't appeal to me, personally. I already know how to fly and I like the challenge of landing a tailwheel airplane.
I don't doubt that it can be done, and I don't doubt that it can be done safely but it will cost more, be heavier and more complex than the tubes and cables that we use now. It will be less reliable too. I don't mean it'll be less reliable in the sense that it'll crash more airplanes, but there will be a higher rate of component failures in a FBW system. And when a servo fails, it'll have to get fixed before you can fly again. The two you had left got you home safely, but only a fool would fly with a known defect in the flight control system. It's similar to twin engine airplanes. The likelihood of you having a total power loss in flight is less than a single engine airplane, but the likelihood of having ANY kind or power loss is more than a single engine airplane.
Whether a person wants to absorb the costs for the benefits depends on the mission. My dream right now is a rag and tube airplane that might go 100 mph, has the little wheel on the back and can land on a riverbed. The additional cost, weight and complexity of a FBW system just doesn't fit that mission. That's all I'm saying.
- John Nicol
- Posts: 611
- Joined: 23 Nov 2011, 12:17
- Contact:
Re: Arduino CAN Shield
Hey Jeffrey, this is great discussion, do you feel that it warrants a completely fresh forum topic, or do you want to start a discussion under Open Source Avionics and see where it leads? I can always promote it to a full topic later if it starts gathering momentum.
John
John
-----
John Nicol
Founder, MakerPlane
John Nicol
Founder, MakerPlane
Re: Arduino CAN Shield
Well said Phil.
My interest in FBW and EFIMS stems not only from watching Blade Runner one too many times
but in a desire to, in some small way, make a change to society. As a resident of Waller I know you will understand the benefits of living 'small town'. I see living in the city as a bane on the human condition and want to do what I can to make it easy for people to move out and repopulate small town America. At one point in my past I started a wireless ISP to bring broadband internet to those in small towns; making it easier to educate and telecommute. (Sold that company to a larger neighbor)
Now I see all those empty airports, and I want them to revive, like they were in the 40s and 50s, but this time not just for recreational flying. I would like to see private 2/4-seater commuter planes covering the tarmac. I want someone in El Campo saying 'Honey, I'm going to hop over to Sugarland and pick up something at Fry's, back in an hour.'
But that's just me...
My interest in FBW and EFIMS stems not only from watching Blade Runner one too many times
Now I see all those empty airports, and I want them to revive, like they were in the 40s and 50s, but this time not just for recreational flying. I would like to see private 2/4-seater commuter planes covering the tarmac. I want someone in El Campo saying 'Honey, I'm going to hop over to Sugarland and pick up something at Fry's, back in an hour.'
But that's just me...
-
birkelbach
- Posts: 193
- Joined: 04 Sep 2012, 14:42
Re: Arduino CAN Shield
Okay I put my Arduino code in front of some guys at work and they helped me find what I was doing wrong. The bug that caused the crash when sending too much data is fixed. It was a buffer overflow (imagine that
.)
The only feature that is not implemented at this point is the MCP2515 raw message command. If anybody needs that, let me know and I'll add it.
I started work on the CAN-FIX Arduino code last night. It's not on GitHub yet and I don't have any free time in the next few days so maybe sometime next week.
The only feature that is not implemented at this point is the MCP2515 raw message command. If anybody needs that, let me know and I'll add it.
I started work on the CAN-FIX Arduino code last night. It's not on GitHub yet and I don't have any free time in the next few days so maybe sometime next week.
-
birkelbach
- Posts: 193
- Joined: 04 Sep 2012, 14:42
Re: Arduino CAN Shield
I noticed that Seedstudio has thier CANbus Shield back in stock...
http://www.seeedstudio.com/depot/canbus ... -1240.html
I have never used one so I don't know how well they'll work, but you'd be hard pressed to buy all the parts and assemble them for the price. The sketch I wrote should work with this shield with one modification. This shield has a 16MHz oscillator. I used a 20MHz ceramic resonator. There is a #define that needs to be removed from the top of the sketch to make it work with 16MHz. I have never tested this. I also noticed that they have a 60 Ohm resistor soldered to the board as a terminating resistor. I don't know why they'd do that without putting a jumper or something to remove it from the circuit so it'd probably be best to unsolder that from the board and just put your own termination resistor where it's needed. It's clearly labeled R3 and shouldn't be that hard to remove. Actually I just took a really close look at the board and it looks like there is a solder pad for connecting and disconnecting this resistor from the circuit. It's confusing on the schematic but the traces on the PCB look like it's correct. It's labeled P1. Just make sure that P1 is open and it should work fine.
I doubt that I'll buy one of these anytime soon but it'd be interesting to know how it works, so if one of you guys decides to try it, please report back.
http://www.seeedstudio.com/depot/canbus ... -1240.html
I have never used one so I don't know how well they'll work, but you'd be hard pressed to buy all the parts and assemble them for the price. The sketch I wrote should work with this shield with one modification. This shield has a 16MHz oscillator. I used a 20MHz ceramic resonator. There is a #define that needs to be removed from the top of the sketch to make it work with 16MHz. I have never tested this. I also noticed that they have a 60 Ohm resistor soldered to the board as a terminating resistor. I don't know why they'd do that without putting a jumper or something to remove it from the circuit so it'd probably be best to unsolder that from the board and just put your own termination resistor where it's needed. It's clearly labeled R3 and shouldn't be that hard to remove. Actually I just took a really close look at the board and it looks like there is a solder pad for connecting and disconnecting this resistor from the circuit. It's confusing on the schematic but the traces on the PCB look like it's correct. It's labeled P1. Just make sure that P1 is open and it should work fine.
I doubt that I'll buy one of these anytime soon but it'd be interesting to know how it works, so if one of you guys decides to try it, please report back.
Re: Arduino CAN Shield
Something new at Mouser... a 12 conductor IP67 connector (wet, high vibration, and wide opertating temperature conditions) for less than $2 in small qty. All those extra conductors might be good for additional power/ground lines for higher amp uses (rated at 10.8A per contact) or redundant power, or some could be designated 'in' and some 'out' for daisy chaining with a single socket on the board.
http://www.mouser.com/new/connectors/molex_MX120G/
http://www.mouser.com/new/connectors/molex_MX120G/
-
birkelbach
- Posts: 193
- Joined: 04 Sep 2012, 14:42
Re: Arduino CAN Shield
Not bad. I like it. Would be perfect for firewall forward and "outside the cabin" applications. Could be inside too I guess. 10 Conductors = CANH x2, CANL x2, CAN GNDx2, +12V*2 and GND*2. Hey that's 10, whatdayaknow. All the x2's are for In and Out. One connector and we get power and communcation in and out. The only drawback to one connector is when it's unplugged the network is down but I don't think that's a big deal. With two connectors of opposite gender you can plug them into each other if you remove the node and the network comes back up. Minor issue I admit. Not like you fiddle with this kinda thing in flight anyway. It sure is nice on my bench though. 