Go Back   EcoModder Forum > EcoModding > Aerodynamics
Register Now
 Register Now
 

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 11-17-2016, 01:40 PM   #21 (permalink)
Administrator
 
Daox's Avatar
 
Join Date: Dec 2007
Location: Germantown, WI
Posts: 11,203

CM400E - '81 Honda CM400E
90 day: 51.49 mpg (US)

Daox's Grey Prius - '04 Toyota Prius
Team Toyota
90 day: 49.53 mpg (US)

Daox's Insight - '00 Honda Insight
90 day: 64.33 mpg (US)

Swarthy - '14 Mitsubishi Mirage DE
Mitsubishi
90 day: 56.69 mpg (US)

Daox's Volt - '13 Chevrolet Volt
Thanks: 2,501
Thanked 2,588 Times in 1,555 Posts
I just started looking the the arduino servo library the other day. However, it seems very easy to use. First, you setup a servo in the code. Then, at any point you can tell the servo to go to X degrees. Its really that simple. Here is an example code that moves a servo based off input from a potentiometer. My code will be very similar, except that it'll fully open or close the block based off of the temperature of the coolant. At this point I don't plan on partially opening the grill block.

https://www.arduino.cc/en/Tutorial/Knob

Code:
/*
 Controlling a servo position using a potentiometer (variable resistor)
 by Michal Rinott <http://people.interaction-ivrea.it/m.rinott>

 modified on 8 Nov 2013
 by Scott Fitzgerald
 http://www.arduino.cc/en/Tutorial/Knob
*/

#include <Servo.h>

Servo myservo;  // create servo object to control a servo

int potpin = 0;  // analog pin used to connect the potentiometer
int val;    // variable to read the value from the analog pin

void setup() {
  myservo.attach(9);  // attaches the servo on pin 9 to the servo object
}

void loop() {
  val = analogRead(potpin);            // reads the value of the potentiometer (value between 0 and 1023)
  val = map(val, 0, 1023, 0, 180);     // scale it to use it with the servo (value between 0 and 180)
  myservo.write(val);                  // sets the servo position according to the scaled value
  delay(15);                           // waits for the servo to get there
}
Once I get done with the mechanical stuff, I will be moving into the electrical and I will post my code when I get there.

The arduino will be tapping into the coolant temperature sensor signal so it knows when to open and close, but that is about it other than hooking up power and ground wires.

As for powering the servo, it should be able to be run off the 5V power regulator onboard the arduino. The specs on the regulator say it can handle up to 800mA, and the servo specs say it uses 200mA. So, we have plenty of head room for the arduino to do its job.

__________________
Current project: A better alternator delete
  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 11-17-2016, 02:02 PM   #22 (permalink)
EcoModding Lurker
 
Join Date: Oct 2016
Location: United States
Posts: 68

Delta Flyer - '94 Honda Accord
90 day: 31.31 mpg (US)
Thanks: 4
Thanked 22 Times in 20 Posts
A. But how are you powering the Arduino itself? It needs power too!

B. It wouldn't be too hard to divide the servo activation into steps, i.e. 1/2, 3/4, 1/4 open, depending on the input value. Again, I'm no expert here, but that's my opinion based on what little experience I've got.

Thanks for sharing your research, by the way! I really am looking forward to your progress.
  Reply With Quote
Old 11-17-2016, 02:51 PM   #23 (permalink)
Administrator
 
Daox's Avatar
 
Join Date: Dec 2007
Location: Germantown, WI
Posts: 11,203

CM400E - '81 Honda CM400E
90 day: 51.49 mpg (US)

Daox's Grey Prius - '04 Toyota Prius
Team Toyota
90 day: 49.53 mpg (US)

Daox's Insight - '00 Honda Insight
90 day: 64.33 mpg (US)

Swarthy - '14 Mitsubishi Mirage DE
Mitsubishi
90 day: 56.69 mpg (US)

Daox's Volt - '13 Chevrolet Volt
Thanks: 2,501
Thanked 2,588 Times in 1,555 Posts
The arduino will be powered with 12V switched power from the car. Most versions of the arduino have a power regulator circuit built into them, so it can easily accept 12V input. No filters (capacitors) needed as they're built into the regulator circuit.

Quite true, it would not be too hard to program the servo to open incrementally. However, I don't see much advantage? As I see it, ideal operation is to wait until just before the electric fan turns on, then open the grill block. This ensures the radiator is completely full of the hottest coolant possible. That means our bang for the buck of airflow will be the greatest. I'll drop the coolant temp down to just above where the thermostat closes, and then close the grill again. It will cycle open and closed. I don't think it'll be too often, but testing will tell. If it is actuating too often, adding variable grill block logic would probably be advantageous. If anyone sees flaws in my logic, do tell!
__________________
Current project: A better alternator delete
  Reply With Quote
Old 11-17-2016, 03:11 PM   #24 (permalink)
Permanent Lurker
 
seifrob's Avatar
 
Join Date: May 2011
Location: Czechoslovakia (sort of), Europe
Posts: 348

Dáčenka - '10 Dacia / Renault Logan MCV 1.5 dCi (X90 k9k)
90 day: 47.08 mpg (US)
Thanks: 129
Thanked 198 Times in 92 Posts
Good work! It looks like it is drawn in Google SketchUp. Is it?
  Reply With Quote
Old 11-17-2016, 04:21 PM   #25 (permalink)
Administrator
 
Daox's Avatar
 
Join Date: Dec 2007
Location: Germantown, WI
Posts: 11,203

CM400E - '81 Honda CM400E
90 day: 51.49 mpg (US)

Daox's Grey Prius - '04 Toyota Prius
Team Toyota
90 day: 49.53 mpg (US)

Daox's Insight - '00 Honda Insight
90 day: 64.33 mpg (US)

Swarthy - '14 Mitsubishi Mirage DE
Mitsubishi
90 day: 56.69 mpg (US)

Daox's Volt - '13 Chevrolet Volt
Thanks: 2,501
Thanked 2,588 Times in 1,555 Posts
Thanks seifrob!

The software I use to draw up all my stuff is SolidWorks. I use it professionally daily so its a lot quicker for me to do it in that than Sketchup. I did try Sketchup once. It seemed pretty nice for a free 3d software package. But, since I already know Solidworks, that is what I stick with.
__________________
Current project: A better alternator delete
  Reply With Quote
The Following User Says Thank You to Daox For This Useful Post:
seifrob (11-17-2016)
Old 11-17-2016, 09:04 PM   #26 (permalink)
Master EcoModder
 
gumby79's Avatar
 
Join Date: Dec 2014
Location: Butte, Montana
Posts: 726

little jona - '91 Dodge D 250 first gen cummins LE
Team Streamliner
90 day: 23.4 mpg (US)

Little Jona airo modded - '91 Dodge RAM 3/4 TON D 250 2×4 AUTO
Pickups
Team Cummins
90 day: 18.5 mpg (US)

The Salted Hound Jenny. - '87 Dodge Ram 50/D-50 5sp 4X4
90 day: 20.24 mpg (US)

Jona Allison aero - '91 Dodge Ram D-250 Le
90 day: 20.76 mpg (US)
Thanks: 208
Thanked 428 Times in 279 Posts
If you find the micro servo dose not pack enough punch,then consider using a spring for close and setup the servo as a winch. Insted of a larger servo

Winch setup

Opt1 disable the potentiometer (as per instructions below)
Opt2 Relocate the potentiometer to the grill flap (this option would delete the need for limit switches)
-crawler-tech-how-build-winch.html
Gumby Stay Flexible
__________________
1st gen cummins 91.5 dodge d250 ,HX35W/12/6 QSV
ehxsost manafulld wrap, Aero Tonto
best tank: distance 649gps mi 24.04 mpg 27.011usg
Best mpg : 31.32mpg 100mi 3.193 USG 5/2/20


Former
'83 GMC S-15 Jimmy 2door 2wd O/D auto 3.73R&P
'79 Chevy K20 4X4 350ci 400hp msd custom th400 /np205. 7.5-new 14mpg modded befor modding was a thing
87' Hyundai Excel
83 ranger w/87 2.9 L FI2wd auto 18mpg on the floor
04 Mitsubishi Gallant 2.4L auto 26mpg
06 Subaru Forrester XT(WRX PACKAGE) MT AWD Turbocharged 18 plying dirty best of 26mpg@70mph
95Chevy Blazer 4x4 auto 14-18mpg
04 Chevy Blazer 4x4 auto 16-22mpg


  Reply With Quote
The Following User Says Thank You to gumby79 For This Useful Post:
Daox (11-17-2016)
Old 11-17-2016, 10:57 PM   #27 (permalink)
Administrator
 
Daox's Avatar
 
Join Date: Dec 2007
Location: Germantown, WI
Posts: 11,203

CM400E - '81 Honda CM400E
90 day: 51.49 mpg (US)

Daox's Grey Prius - '04 Toyota Prius
Team Toyota
90 day: 49.53 mpg (US)

Daox's Insight - '00 Honda Insight
90 day: 64.33 mpg (US)

Swarthy - '14 Mitsubishi Mirage DE
Mitsubishi
90 day: 56.69 mpg (US)

Daox's Volt - '13 Chevrolet Volt
Thanks: 2,501
Thanked 2,588 Times in 1,555 Posts
Interesting idea, thanks Gumby.
__________________
Current project: A better alternator delete
  Reply With Quote
Old 11-17-2016, 11:56 PM   #28 (permalink)
EcoModding Apprentice
 
LittleBlackDuck's Avatar
 
Join Date: Jul 2016
Location: The Land Downunder
Posts: 229

CT - '11 Lexus CT200h Luxury
Thanks: 26
Thanked 80 Times in 61 Posts
Quote:
Originally Posted by Daox View Post
The arduino will be powered with 12V switched power from the car. Most versions of the arduino have a power regulator circuit built into them, so it can easily accept 12V input. No filters (capacitors) needed as they're built into the regulator circuit.

Quite true, it would not be too hard to program the servo to open incrementally. However, I don't see much advantage? As I see it, ideal operation is to wait until just before the electric fan turns on, then open the grill block. This ensures the radiator is completely full of the hottest coolant possible. That means our bang for the buck of airflow will be the greatest. I'll drop the coolant temp down to just above where the thermostat closes, and then close the grill again. It will cycle open and closed. I don't think it'll be too often, but testing will tell. If it is actuating too often, adding variable grill block logic would probably be advantageous. If anyone sees flaws in my logic, do tell!
A few gotchas for you to watch out for:

The arduino reg generates a lot of heat and may not like extended periods at 14V. Might be better to have a pre-regulator to knock it down to 8-9V and kill more noise too.

By using proportional control of the servo you will prevent cycling and excessive open/close cycles. I would choose an opening amount based on the rate of rise of the coolant temperature and modify this in a closed loop to get equilibrium rather than flopping around like a dying fish between extremes.

You might also consider the cooling fan as an additional input to adjust the strategy - if the fan is running for longer than x minutes then open up more and conversely if it is off for y minutes then close it up a bit.

Ambient temperature should also be used to modulate the opening rate / amount - I would not slam it open if the air temp is -20.

You could also use an analog input connected to a variable resistor to change the reactivity (gain) of the loop for tuning.

Simon
  Reply With Quote
The Following 2 Users Say Thank You to LittleBlackDuck For This Useful Post:
Daox (11-18-2016), Xist (11-18-2016)
Old 11-18-2016, 09:33 AM   #29 (permalink)
Administrator
 
Daox's Avatar
 
Join Date: Dec 2007
Location: Germantown, WI
Posts: 11,203

CM400E - '81 Honda CM400E
90 day: 51.49 mpg (US)

Daox's Grey Prius - '04 Toyota Prius
Team Toyota
90 day: 49.53 mpg (US)

Daox's Insight - '00 Honda Insight
90 day: 64.33 mpg (US)

Swarthy - '14 Mitsubishi Mirage DE
Mitsubishi
90 day: 56.69 mpg (US)

Daox's Volt - '13 Chevrolet Volt
Thanks: 2,501
Thanked 2,588 Times in 1,555 Posts
Good point about the 14V. However, the vast majority of the time the servo isn't going to be in use. So, the load will primarily just be the arduino which doesn't really pull much power (~45 mA per a quick google search). However, I will keep an eye on the regulator temp. I'd like to keep this as simple as I can. If it becomes an issue, I'll look into changing it.

I like the idea of closed loop control to create equilibrium. Perhaps that'll be stage 2 once I get it installed and working.

Ideally, I'd also like to come up with a way to close the grill block when the car is shut off. This would help retain some heat in the engine for a bit longer. If anyone has any ideas on that, I'm all ears. I'm not sure how much this would really be super useful though if it takes much more complication to implement.
__________________
Current project: A better alternator delete
  Reply With Quote
Old 11-18-2016, 12:44 PM   #30 (permalink)
Administrator
 
Daox's Avatar
 
Join Date: Dec 2007
Location: Germantown, WI
Posts: 11,203

CM400E - '81 Honda CM400E
90 day: 51.49 mpg (US)

Daox's Grey Prius - '04 Toyota Prius
Team Toyota
90 day: 49.53 mpg (US)

Daox's Insight - '00 Honda Insight
90 day: 64.33 mpg (US)

Swarthy - '14 Mitsubishi Mirage DE
Mitsubishi
90 day: 56.69 mpg (US)

Daox's Volt - '13 Chevrolet Volt
Thanks: 2,501
Thanked 2,588 Times in 1,555 Posts
I've been printing as I've progressed to test out the pieces, but I figured I'd show some of the images with you guys. Its not vaporware, I swear!


Here is the initial blade design. The blade is 1/8" thick here. I later beefed up the pivot point to 3/16" diameter. I think 1/8" would have been fine, but 3/16" will definitely be plenty strong.






This was the test piece for the frame. It is surprisingly sturdy once snapped together. I also tested the blade clip which needed a little tweaking. The snap was a bit too tight. The other clip you see on the far right was for the power door lock actuator mounting piece which has now been eliminated.





These parts were just printed last night. The blade clip is a new design and it works beautifully.





The servo mount also works very nicely as well. There isn't a ton of extra room though! So far I'm really happy with how the design is coming together.


Attached Thumbnails
Click image for larger version

Name:	pieces01.jpg
Views:	627
Size:	71.1 KB
ID:	20932   Click image for larger version

Name:	pieces02.jpg
Views:	673
Size:	77.0 KB
ID:	20933   Click image for larger version

Name:	pieces03.jpg
Views:	652
Size:	95.1 KB
ID:	20934   Click image for larger version

Name:	pieces04.jpg
Views:	889
Size:	69.4 KB
ID:	20935  
__________________
Current project: A better alternator delete
  Reply With Quote
The Following 2 Users Say Thank You to Daox For This Useful Post:
Leinaad (08-16-2018), MetroMPG (11-18-2016)
Reply  Post New Thread






Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Content Relevant URLs by vBSEO 3.5.2
All content copyright EcoModder.com