TinyIOx Questions

A forum for discussing the MegaSquirt related (but non-B&G) board development, assembly, installation, and testing.

Moderators: jsmcortina, muythaibxr

Re: TinyIOx Questions

Postby SethU » Wed Mar 15, 2017 3:59 pm

I think the light bulb over my head just turned on.
SethU
Helpful MS/Extra'er
 
Posts: 74
Joined: Tue Mar 29, 2016 6:57 pm

Re: TinyIOx Questions

Postby racingmini_mtl » Wed Mar 15, 2017 8:18 pm

Yes, you're correct about the analog signals. They are designated as CAN ADC 0-7. The ports are for digital (not analog) I/Os.

As for the ports, since you only need outputs at this time, you should configure them as 3 outputs. Also, you need to configure the port for on/off outputs as a digital type even if you will only use one channel. The single value is only for PWM outputs. The digital outputs (on/off outputs) are for up to 8 channels.

If you're familiar with data types, each port is an 8-bit value and a PWM signal needs all 8 bits to define the duty cycle while the on/off outputs (or inputs if you were using them) require only 1 bit per channel.

Jean
jbperf.com Main site . . . . . . . . . . . . . . . . . . . . . . jbperf.com Forum
Image
racingmini_mtl
Super MS/Extra'er
 
Posts: 7718
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada

Re: TinyIOx Questions

Postby SethU » Thu Mar 16, 2017 8:50 pm

The 4 TPM1 timer input channels... Are they strictly and only for PWM inputs, or can I put switched 5v power to them for a on/off input?

PTE4 and PTE5... They're able to be used as digital I/O's too, aren't they?
SethU
Helpful MS/Extra'er
 
Posts: 74
Joined: Tue Mar 29, 2016 6:57 pm

Re: TinyIOx Questions

Postby racingmini_mtl » Thu Mar 16, 2017 9:45 pm

The 4 TPM1 timer input are only for PWM inputs at this time. And you can use PTE4 and PTE5 as digital I/Os but then you can no longer use the I2C port. If you never plan on using it for AFR data or LED displays, it's fine but it would still be a good idea if you can use another channel simply to keep your options open. Other I2C devices might be supported in the future (nothing planned at this time).

Jean
jbperf.com Main site . . . . . . . . . . . . . . . . . . . . . . jbperf.com Forum
Image
racingmini_mtl
Super MS/Extra'er
 
Posts: 7718
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada

Re: TinyIOx Questions

Postby SethU » Thu Mar 16, 2017 10:24 pm

racingmini_mtl wrote:The 4 TPM1 timer input are only for PWM inputs at this time. And you can use PTE4 and PTE5 as digital I/Os but then you can no longer use the I2C port. If you never plan on using it for AFR data or LED displays, it's fine but it would still be a good idea if you can use another channel simply to keep your options open. Other I2C devices might be supported in the future (nothing planned at this time).

Jean

Thanks Jean. I'll put some thought into that.
SethU
Helpful MS/Extra'er
 
Posts: 74
Joined: Tue Mar 29, 2016 6:57 pm

Re: TinyIOx Questions

Postby SethU » Fri Mar 17, 2017 8:28 am

Is there any chance this would wire right up to the serial port on the TinyIOx? Intuition is telling me "that" would just be too easy.
https://www.sparkfun.com/products/13712
SethU
Helpful MS/Extra'er
 
Posts: 74
Joined: Tue Mar 29, 2016 6:57 pm

Re: TinyIOx Questions

Postby racingmini_mtl » Fri Mar 17, 2017 8:49 am

SethU wrote:Is there any chance this would wire right up to the serial port on the TinyIOx? Intuition is telling me "that" would just be too easy.
https://www.sparkfun.com/products/13712

You would need to add an RS232 interface and a 3.3V power supply. Moreover, you would have to reprogram it to use the Megasquirt serial protocol.

Jean
jbperf.com Main site . . . . . . . . . . . . . . . . . . . . . . jbperf.com Forum
Image
racingmini_mtl
Super MS/Extra'er
 
Posts: 7718
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada

Re: TinyIOx Questions

Postby SethU » Sat Mar 18, 2017 3:12 pm

I want to set up one of the inputs with a switch. Is this the correct circuit and resistor values?

Screenshot (14).png
You do not have the required permissions to view the files attached to this post.
SethU
Helpful MS/Extra'er
 
Posts: 74
Joined: Tue Mar 29, 2016 6:57 pm

Re: TinyIOx Questions

Postby racingmini_mtl » Sat Mar 18, 2017 3:35 pm

You don't need the Vref pull up because there is an internal pull up. And it would be better to use a 10k Ohm inline resistor.

Jean
jbperf.com Main site . . . . . . . . . . . . . . . . . . . . . . jbperf.com Forum
Image
racingmini_mtl
Super MS/Extra'er
 
Posts: 7718
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada

Re: TinyIOx Questions

Postby SethU » Sat Mar 18, 2017 4:04 pm

Screenshot (14).png



Nice and easy. Thank you. Should have the proto board together soon. Almost have everything I need.
You do not have the required permissions to view the files attached to this post.
SethU
Helpful MS/Extra'er
 
Posts: 74
Joined: Tue Mar 29, 2016 6:57 pm

Re: TinyIOx Questions

Postby SethU » Sun Mar 19, 2017 4:17 pm

For the PWM and On/Off output transistors/MOSFETs and Flyback Diode...

Screenshot (15).png


Are the specifications of these parts sufficient?

Diode http://www.digikey.com/product-detail/en/nexperia-usa-inc/PMEG4010BEA,115/1727-5211-1-ND/2531810

N- MOSFET https://www.digikey.com/product-detail/en/diodes-incorporated/ZXMS6004FFQTA/ZXMS6004FFQTADICT-ND/5978324


And is it okay to go from the diodes to the same +12v that feeds the 5v power converter, or should I run another lead out to the main 12v supply line, similar to the grounds for the transistors? Seems if I did it on the board, that some sort of suppressor circuitry might be appropriate... But, I know very little about this stuff.
You do not have the required permissions to view the files attached to this post.
SethU
Helpful MS/Extra'er
 
Posts: 74
Joined: Tue Mar 29, 2016 6:57 pm

Re: TinyIOx Questions

Postby dontz125 » Sun Mar 19, 2017 4:50 pm

Both are very robust little beasts for their size. Just check your frequency on the N-FET; those IntelliFETs are -slow-, rated in usec, when other N-FETs are rated in ns. For something like a 100Hz boost control solenoid, it probably doesn't matter.

Are you sure you meant to select a SOD323 device? I screwed myself up once doing that, ordering 323 when the design and pads were for a SOD123 case. Oops ...
Back in business!
Now in stock -- QuadraMAP Sensor Module -- 3-wire Idle on Q16 -- PWM-to-Stepper Controller -- Inline Shift Sensor
Next set of products -- PWM Fuel Pump Controller -- DB15 Input Card for V3.57 -- MS2 SEC for V3.57 -- uS 4+4 Expander -- Tip-over Switch
Image
dontz125
Super MS/Extra'er
 
Posts: 3495
Joined: Mon May 11, 2009 7:14 pm
Location: Scarborough, ON

Re: TinyIOx Questions

Postby racingmini_mtl » Sun Mar 19, 2017 5:48 pm

Running a separate 12V for high current/noisy outputs (such as PWM outputs) is not a bad idea and that's what I have on my full size IOx board.

Jean
jbperf.com Main site . . . . . . . . . . . . . . . . . . . . . . jbperf.com Forum
Image
racingmini_mtl
Super MS/Extra'er
 
Posts: 7718
Joined: Sun May 02, 2004 6:51 am
Location: Quebec, Canada

Re: TinyIOx Questions

Postby SethU » Sun Mar 19, 2017 6:28 pm

dontz125 wrote:Both are very robust little beasts for their size. Just check your frequency on the N-FET; those IntelliFETs are -slow-, rated in usec, when other N-FETs are rated in ns. For something like a 100Hz boost control solenoid, it probably doesn't matter.

Are you sure you meant to select a SOD323 device? I screwed myself up once doing that, ordering 323 when the design and pads were for a SOD123 case. Oops ...

Good. That's the "automotive" rated version of the same N-FET you recommended to replace the one in my MircoSquirt. Boost solenoid is only 30Hz.

Yes... I ordered a bunch of stuff, not knowing there were different sizes available. Some came a little too big and others were darn near microscopic.

The holes on the proto board are 0.100" center to center and I need components that will fit between them. 1206 resisters were too big, 0402's too small. Settled on 0603 size, and the SOD323 measurements seemed close to 0603.

Here's the 1206. A bit too big. Half that would be perfect... and 0603's are about that.

20170319_130719.jpg
You do not have the required permissions to view the files attached to this post.
SethU
Helpful MS/Extra'er
 
Posts: 74
Joined: Tue Mar 29, 2016 6:57 pm

Re: TinyIOx Questions

Postby dontz125 » Sun Mar 19, 2017 7:11 pm

SethU wrote:Some came a little too big and others were darn near microscopic.
When I first got into SMD I was hand soldering everything, and it got a little tricky at times. Most of the stuff I started working with was 1206 and SOIC8, then as I got more confident I dropped to 0805 and SOT-3. I've tried 0603 and SOT363, and it takes a steady hand. I didn't bother with 0402,and just shook my head at 0201.

Then I found out about 10005 ... :shock:


:lol:
Back in business!
Now in stock -- QuadraMAP Sensor Module -- 3-wire Idle on Q16 -- PWM-to-Stepper Controller -- Inline Shift Sensor
Next set of products -- PWM Fuel Pump Controller -- DB15 Input Card for V3.57 -- MS2 SEC for V3.57 -- uS 4+4 Expander -- Tip-over Switch
Image
dontz125
Super MS/Extra'er
 
Posts: 3495
Joined: Mon May 11, 2009 7:14 pm
Location: Scarborough, ON

Re: TinyIOx Questions

Postby SethU » Sun Mar 19, 2017 9:30 pm

What temperature do you set your soldering iron to for this stuff?
SethU
Helpful MS/Extra'er
 
Posts: 74
Joined: Tue Mar 29, 2016 6:57 pm

Re: TinyIOx Questions

Postby SethU » Sun Mar 19, 2017 9:44 pm

racingmini_mtl wrote:Running a separate 12V for high current/noisy outputs (such as PWM outputs) is not a bad idea and that's what I have on my full size IOx board.

Jean

Makes sense to me. But, will there really be any appreciable suppression by having the noisy signal connected 12-18" away. Speaking only of the Flyback +12v. The grounds for the N-FET's will probably be about 4'. Will 1' on the Flyback make a difference? Should I dampen that pulse somehow? Capacitor and a resistor maybe?

It does look like the power converter might have some filtering.

20170319_125657.jpg
You do not have the required permissions to view the files attached to this post.
SethU
Helpful MS/Extra'er
 
Posts: 74
Joined: Tue Mar 29, 2016 6:57 pm

Re: TinyIOx Questions

Postby SethU » Sat Mar 25, 2017 6:14 pm

Made a little headway on it today. Challenging little project. I think I'm as far along as I can be until the 26 gauge wire arrives. Thought 22 would be okay, but it's way too big given the amount of runs I need to make, tying the circuits together and from board to board. 26 should be okay I think.

Bottom two rows of components are for the 8 analog sensors (5 pressure, 3 temp).
The third row are the flyback diodes for the N-FET's (not on yet)
The 3 components stacked vertically on the right are the 2.49k resistors for the temp sensors.

20170325_160607.jpg2.jpg
You do not have the required permissions to view the files attached to this post.
SethU
Helpful MS/Extra'er
 
Posts: 74
Joined: Tue Mar 29, 2016 6:57 pm

Re: TinyIOx Questions

Postby dontz125 » Sat Mar 25, 2017 6:19 pm

I ... wow. My admiration for your patience, but there comes a moment when it's easier to download a free copy of Eagle, and order $9.95 worth of boards from Itead, or Seeed, or Elecrow ... :D
Back in business!
Now in stock -- QuadraMAP Sensor Module -- 3-wire Idle on Q16 -- PWM-to-Stepper Controller -- Inline Shift Sensor
Next set of products -- PWM Fuel Pump Controller -- DB15 Input Card for V3.57 -- MS2 SEC for V3.57 -- uS 4+4 Expander -- Tip-over Switch
Image
dontz125
Super MS/Extra'er
 
Posts: 3495
Joined: Mon May 11, 2009 7:14 pm
Location: Scarborough, ON

Re: TinyIOx Questions

Postby SethU » Sat Mar 25, 2017 7:06 pm

dontz125 wrote:I ... wow. My admiration for your patience, but there comes a moment when it's easier to download a free copy of Eagle, and order $9.95 worth of boards from Itead, or Seeed, or Elecrow ... :D

Sounds like my relative inexperience is costing me extra work. Tell me more.
SethU
Helpful MS/Extra'er
 
Posts: 74
Joined: Tue Mar 29, 2016 6:57 pm

PreviousNext

Return to Expansion boards

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest