Go Back   EcoModder Forum > EcoModding > Fossil Fuel Free
Register Now
 Register Now
 

Reply  Post New Thread
 
Submit Tools LinkBack Thread Tools
Old 12-14-2018, 11:30 PM   #3271 (permalink)
EcoModding Lurker
 
Join Date: May 2018
Location: Menifee, CA
Posts: 17
Thanks: 16
Thanked 0 Times in 0 Posts
So I am messing around with the AC board and got to a stage where the relays are switching on/off! This is a big first step as I took the long road of soldering the bare board. Now I have come to a point of communicating through what I see as a USB and am having no such luck. Is there a driver I need? I am not sure how to get the communication through serial. Any advice?

  Reply With Quote
Alt Today
Popular topics

Other popular topics in this forum...

   
Old 12-15-2018, 10:28 PM   #3272 (permalink)
Master EcoModder
 
Join Date: Sep 2010
Location: Saskatoon, canada
Posts: 1,488

Ford Prefect - '18 Ford F150 XLT XTR

Tess - '22 Tesla Y LR
Thanks: 746
Thanked 565 Times in 447 Posts
Quote:
Originally Posted by esali1987 View Post
So I am messing around with the AC board and got to a stage where the relays are switching on/off! This is a big first step as I took the long road of soldering the bare board. Now I have come to a point of communicating through what I see as a USB and am having no such luck. Is there a driver I need? I am not sure how to get the communication through serial. Any advice?
Get a USB to serial converter, wire pins 2, 3, and 5 from the converter to the header on the board. I don't remember the pin numbers on the header .. I'll have to look tomorrow when I get home.

Communications is 115,200 baud, no parity, 8 data bits, 1 stop bit. Use a terminal program. Hyperterminal was included for free with XP. I don't think it comes with anything newer. there are many free or cheap programs that will do terminal communications. Many (not all, sadly) USB serial converters have a link to a terminal emulator in their documentation.

When your new board boots up, you should see the firmware version on the screen after a few seconds. If you don't you may have wires backward or not connected well.

From there, you can press enter to get a prompt.
__________________
In THEORY there is no difference between Theory and Practice
In PRACTICE there IS!
  Reply With Quote
The Following User Says Thank You to thingstodo For This Useful Post:
esali1987 (12-15-2018)
Old 12-16-2018, 02:47 AM   #3273 (permalink)
Master EcoModder
 
teoman's Avatar
 
Join Date: Jan 2017
Location: Istanbul
Posts: 1,245

A3 - '12 Audi A3
Thanks: 65
Thanked 225 Times in 186 Posts
The Arduino IDE has a serial port monitor and plotter.
  Reply With Quote
The Following 2 Users Say Thank You to teoman For This Useful Post:
esali1987 (12-16-2018), thingstodo (12-16-2018)
Old 12-16-2018, 08:11 PM   #3274 (permalink)
Master EcoModder
 
Join Date: Sep 2010
Location: Saskatoon, canada
Posts: 1,488

Ford Prefect - '18 Ford F150 XLT XTR

Tess - '22 Tesla Y LR
Thanks: 746
Thanked 565 Times in 447 Posts
Quote:
Originally Posted by teoman View Post
The Arduino IDE has a serial port monitor and plotter.
Oh yeah. That too! Thanks for the reminder ... some of us have poor memories
__________________
In THEORY there is no difference between Theory and Practice
In PRACTICE there IS!
  Reply With Quote
The Following User Says Thank You to thingstodo For This Useful Post:
esali1987 (12-16-2018)
Old 12-16-2018, 10:18 PM   #3275 (permalink)
EcoModding Lurker
 
Join Date: May 2018
Location: Menifee, CA
Posts: 17
Thanks: 16
Thanked 0 Times in 0 Posts
Haha. Thats great should help me move along just fine. Thanks!
  Reply With Quote
Old 12-16-2018, 11:40 PM   #3276 (permalink)
EcoModding Lurker
 
Join Date: May 2018
Location: Menifee, CA
Posts: 17
Thanks: 16
Thanked 0 Times in 0 Posts
Ok so this is what I have pinned out from the USB to RS-232 cable to the 2X3 board header:
Pin 2 >> header pin 1 (MISO)
Pin 3 >> header pin 4 (MOSI)
Pin 5 >> header pin 6 (CONTROL_GND)
This gives me a FF or Null in the command prompt. Is this wrong?
  Reply With Quote
Old 12-17-2018, 07:40 PM   #3277 (permalink)
Master EcoModder
 
Join Date: Sep 2010
Location: Saskatoon, canada
Posts: 1,488

Ford Prefect - '18 Ford F150 XLT XTR

Tess - '22 Tesla Y LR
Thanks: 746
Thanked 565 Times in 447 Posts
Quote:
Originally Posted by esali1987 View Post
Ok so this is what I have pinned out from the USB to RS-232 cable to the 2X3 board header:
Pin 2 >> header pin 1 (MISO)
Pin 3 >> header pin 4 (MOSI)
Pin 5 >> header pin 6 (CONTROL_GND)
This gives me a FF or Null in the command prompt. Is this wrong?
I've attached a picture of the driver board with the pins circled.

I'm not sure which header you are connected to. My header is 1x3, tx rx and gnd are from the reference of the control board. So tx goes to 2=RX on the USB serial port, rx goes to 3=TX on the USB serial port, gnd goes to 5=GNd on the USB serial port

Sorry for the google search on the serial port. I don't have a suitably sized picture handy to post.

https://www.google.com/search?q=seri...LXSmrvj4tMqHM:

This is a log at 115,200 baud, no parity, 8 data bits, 1 stop bit, from power up. config shows the present settings. It appears that i didn't hit CR first.

Code:
AC controller firmware, ver. 1.0
config
motor-type=1
kp=04000 ki=00064
current-sensor-amps-per-volt=0480
max-regen-position=0390
min-regen-position=0490
min-throttle-position=0510
max-throttle-position=0610
fault-throttle-position=0005
max-battery-amps=0200 amps
max-battery-amps-regen=0400 amps
max-motor-amps=600 amps
max-motor-amps-regen=600 amps
precharge-time=0050 tenths of a sec
rotor-time-constant=018 ms
pole-pairs=002
max-rpm=06000 rev/min
throttle-type=0
encoder-ticks=0064 ticks/rev
pi-ratio=000
raw-throttle=0505
Hope this helps!
Attached Thumbnails
Click image for larger version

Name:	controlBoard.jpg
Views:	78
Size:	89.6 KB
ID:	25246  
__________________
In THEORY there is no difference between Theory and Practice
In PRACTICE there IS!
  Reply With Quote
The Following User Says Thank You to thingstodo For This Useful Post:
esali1987 (12-18-2018)
Old 12-18-2018, 12:59 AM   #3278 (permalink)
EcoModding Lurker
 
Join Date: May 2018
Location: Menifee, CA
Posts: 17
Thanks: 16
Thanked 0 Times in 0 Posts
Ah I guess things have changed a little for the newer versions.I have a USB serial connection and a FTDI_FT232RL chip I have to figure out how to get to communicate.
  Reply With Quote
Old 12-18-2018, 10:17 AM   #3279 (permalink)
Master EcoModder
 
Join Date: Sep 2010
Location: Saskatoon, canada
Posts: 1,488

Ford Prefect - '18 Ford F150 XLT XTR

Tess - '22 Tesla Y LR
Thanks: 746
Thanked 565 Times in 447 Posts
Quote:
Originally Posted by esali1987 View Post
Ah I guess things have changed a little for the newer versions.I have a USB serial connection and a FTDI_FT232RL chip I have to figure out how to get to communicate.
OK. So that's why the pin names you were using were not familiar.

So the FTDI is mounted on the control board now? Cool.

Can you post a picture for us?

If you got the control board from Paul, it has the firmware loaded and should deal with the FTDI setup so that you plug in your USB and you're ready to go.

The spec sheet here shows tx, rx, and gnd available for connection to the micro. They are labeled referenced to the chip .. so tx from the chip goes to rx on the micro. Is that how the traces connect?

https://www.mouser.ca/datasheet/2/16...232R-11534.pdf

Is that how your board is set up?

If you built your own board and programmed your own micro ... which is possible but quite a challenge .. then you will likely need to flash the boot loader onto the chip before loading Paul's code. I would use a PICKIT 3, which is what Paul used to use. Maybe he still does.
__________________
In THEORY there is no difference between Theory and Practice
In PRACTICE there IS!
  Reply With Quote
Old 12-18-2018, 10:57 PM   #3280 (permalink)
EcoModding Lurker
 
Join Date: May 2018
Location: Menifee, CA
Posts: 17
Thanks: 16
Thanked 0 Times in 0 Posts
Yep you are right the FTDI chip has a serial connection to the Micro on pins 2 and 3. I did get the relays clicking on and off when I uploaded the hex files Paul had sent. Ill go back through the process again. Maybe I missed something. I am pretty new to this software stuff so I wouldn't doubt it. Thanks!!

Click image for larger version

Name:	RXTX.jpg
Views:	70
Size:	90.5 KB
ID:	25254

Click image for larger version

Name:	USB serial connection.jpg
Views:	63
Size:	65.0 KB
ID:	25255

  Reply With Quote
Reply  Post New Thread




Similar Threads
Thread Thread Starter Forum Replies Last Post
Paul & Sabrina's cheap DIY 144v motor controller MPaulHolmes Open ReVolt: open source DC motor controller 7381 08-02-2023 11:55 PM
Paul & Sabrina's Cheap EV Conversion MPaulHolmes Fossil Fuel Free 542 11-12-2016 10:09 PM
Contest! Name Paul & Sabrina's controller MetroMPG Forum News & Feedback 120 10-22-2011 02:59 PM



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