HobbyKing.com New Products Flash Sale
Reply
Thread Tools
Old Jan 24, 2013, 03:06 AM
Registered User
Joined May 2008
22 Posts
I have only the versions V0.7 and later.
in the version V0.7 there is a break.
can I change that by ; for the rule of the break?
;#DEFINE SIMULATE ; for debugging only!
;#DEFINE DETECT_NEUTRAL ; detect alternate neutral at 1.35mS
;#DEFINE LIPO ; lithium polymer battery low voltage cutoff
;#DEFINE REVBRAKE ; braking in reverse
;#DEFINE LIN_THROT ; linear throttle curve
#DEFINE SLOW ; rate-limited throttle response
#DEFINE STEP 4 ; maximum throttle change per frame

#define VERSION "=BRIDGE===V0.7=="
jankraak is offline Find More Posts by jankraak
Reply With Quote
Sign up now
to remove ads between posts
Old Jan 25, 2013, 04:56 AM
We want... Information!
Bruce Abbott's Avatar
Hastings, New Zealand
Joined Jan 2001
5,182 Posts
Quote:
Originally Posted by jankraak View Post
I have only the versions V0.7 and later.
in the version V0.7 there is a break.
can I change that by ; for the rule of the break?
;#DEFINE SIMULATE ; for debugging only!
;#DEFINE DETECT_NEUTRAL ; detect alternate neutral at 1.35mS
;#DEFINE LIPO ; lithium polymer battery low voltage cutoff
;#DEFINE REVBRAKE ; braking in reverse
;#DEFINE LIN_THROT ; linear throttle curve
#DEFINE SLOW ; rate-limited throttle response
#DEFINE STEP 4 ; maximum throttle change per frame

#define VERSION "=BRIDGE===V0.7=="
You have the right idea. Just enable whichever defines you want, and reassemble...

V0.7 did not handle bad signals very well. Here is V0.9, which has smoother throttle response to noisy signals and doesn't reset if the signal is stuck high or low.
Bruce Abbott is offline Find More Posts by Bruce Abbott
Reply With Quote
Old Jan 25, 2013, 06:20 AM
Registered User
Joined May 2008
22 Posts
thanks for the file. its just what I need.
Is this for the orginal PCB on your site?
so I can made this PCB with my CNC mill.
jankraak is offline Find More Posts by jankraak
Reply With Quote
Old Jan 25, 2013, 06:41 AM
Registered User
Joined Oct 2012
224 Posts
you can show me a few pictures made circuits ​​by machine CNC
fantasy1988 is offline Find More Posts by fantasy1988
Last edited by fantasy1988; Jan 25, 2013 at 07:05 AM.
Reply With Quote
Old Jan 25, 2013, 08:33 AM
Registered User
Joined May 2008
22 Posts
Here some pictures of the cnc milling ( proxxon MF70).
The other samples of milling some stuff are on my site, under the name "Rainbow JH2" yellow button/
site: http://kraakmodelbouw.com/
jankraak is offline Find More Posts by jankraak
Reply With Quote
Old Jan 25, 2013, 05:03 PM
Registered User
Joined Oct 2012
224 Posts
. how much does proxxon MF70 money ? Where buy it ?
fantasy1988 is offline Find More Posts by fantasy1988
Reply With Quote
Old Jan 25, 2013, 05:49 PM
We want... Information!
Bruce Abbott's Avatar
Hastings, New Zealand
Joined Jan 2001
5,182 Posts
Quote:
Originally Posted by jankraak View Post
Is this for the orginal PCB on your site?
Yes.
Bruce Abbott is offline Find More Posts by Bruce Abbott
Reply With Quote
Old Jan 26, 2013, 06:05 AM
Registered User
Joined May 2008
22 Posts
price:870 euro and a laptop or PC with a parrallel gate.
site: http://www.usovo.de/shop/CNC-Machine...cargih770l5i95

software: eagle 6.1 for drawing the pcb and PCB-gcode for making the file for the milling machine.
the milling machine use "" mach3 " softeware,"


Quote:
Originally Posted by fantasy1988 View Post
. how much does proxxon MF70 money ? Where buy it ?
jankraak is offline Find More Posts by jankraak
Reply With Quote
Old Jan 28, 2013, 07:23 AM
Registered User
Joined May 2008
22 Posts
bruce,

how can I change the value of the max. and min. off thethrottle.
In the program 1.2ms and 1.8ms.
I want to change in 1.92ms and 1.04ms. in the throttle map , so I have more controll.
jankraak is offline Find More Posts by jankraak
Reply With Quote
Old Feb 23, 2013, 11:19 PM
Registered User
Joined Oct 2012
224 Posts
hello Bruce Abbot
sorry for bothering you, I need a little change,

in the ASM code for 12f617

Brake mode using two FET low , now I want to mode brakes use two FET high .
(Because I use driver circuit FET by IR 2101, PWM FET high and ON /OFF FET low ,it is work good, but mode brake not good )
I can change the program like this?

#define FORWARD (1<<ForHiBit)
#define STOP 0
#define REVERSE (1<<RevHiBit)
#define BRAKE (1<<ForHiBit) (code old #define BRAKE (1<<ForLoBit) )

thanks and waiting for your reply
fantasy1988 is offline Find More Posts by fantasy1988
Reply With Quote
Old Feb 27, 2013, 08:37 AM
Registered User
Joined Oct 2012
224 Posts
Bruce abbot
I tried to modify the code and I finally succeeded

I have an H-bridge with an amazing strength

Fun Fun Fun

This is schematic and code of version 12F675 with IR2101 ( very good )
fantasy1988 is offline Find More Posts by fantasy1988
Reply With Quote
Old Mar 13, 2013, 06:55 PM
Registered User
Joined Nov 2012
127 Posts
hello Bruce
Version 12f617 use PWM 250hz ,If I want use PWM 8 or 16khz . how I have to install the code ?

I saw your program post creat PWM 16khz, 8khz, 4khz,. 2khz, 1khz. 500hz and 250hz .I do not understand


16kHz PWM
;#define CLKFREQ 8
;#define T2COUNT 124
;#define T2PRE 0 ; timer 2 prescale = 1:1
;#define MAXPWM 500
;-----------------------------------
; 8kHz PWM
;#define CLKFREQ 8
;#define T2COUNT 249
;#define T2PRE 0
;#define MAXPWM 1000
;-----------------------------------
; 4kHz PWM
;#define CLKFREQ 8
;#define T2COUNT 124
;#define T2PRE 1 ; timer 2 prescale = 1:4
;#define MAXPWM 500
;-----------------------------------
; 2kHz PWM
;#define CLKFREQ 8
;#define T2COUNT 249
;#define T2PRE 1
;#define MAXPWM 1000
;-----------------------------------
; 1kHz PWM
;#define CLKFREQ 8
;#define T2COUNT 124
;#define T2PRE 2 ; timer 2 prescale = 1:16
;#define MAXPWM 500
;-----------------------------------
; 500Hz PWM
;#define CLKFREQ 8
;#define T2COUNT 249
;#define T2PRE 2
;#define MAXPWM 1000
;-----------------------------------
; 250Hz PWM
#define CLKFREQ 4
#define T2COUNT 249
#define T2PRE 2
#define MAXPWM 1000
rc my life is offline Find More Posts by rc my life
Reply With Quote
Old Mar 14, 2013, 04:05 AM
We want... Information!
Bruce Abbott's Avatar
Hastings, New Zealand
Joined Jan 2001
5,182 Posts
Quote:
Originally Posted by rc my life View Post
hello Bruce
Version 12f617 use PWM 250hz ,If I want use PWM 8 or 16khz . how I have to install the code ?

I saw your program post creat PWM 16khz, 8khz, 4khz,. 2khz, 1khz. 500hz and 250hz .I do not understand
You have to enable the defines for the frequency you want, and disable the others (put a ";" at the start of each line that you don't want activated) then reassemble the source code to create a new hex file.

The purpose of each define is as follows:-

CLKFREQ = CPU clock frequency. PWM clock frequency is derived from this.

T2COUNT = Value that Timer2 counts up to (8 bits). Determines PWM cycle time (in conjuction with clock frequency and prescaler selections).

T2PRE = Timer2 prescaler selection. Divides PWM clock frequency by 1, 4 or 16.

MAXPWM = Value required to get 100% PWM duty cycle (10 bits).
Bruce Abbott is offline Find More Posts by Bruce Abbott
Reply With Quote
Old Mar 14, 2013, 09:27 AM
Registered User
Joined Nov 2012
127 Posts
thanks Bruce

ok, I can set the desired frequency PWM

one more question I still do not understand the code here

#define MotorBits ((1<<ForHiBit)|(1<<RevHiBit)|(1<<ForLoBit)|(1<<Rev LoBit))
#define FORWARD (1<<ForHiBit) ( Why have not (1<<RevLoBit) )
#define STOP 0
#define BRAKE (1<<ForLoBit) ( Why have not (1<<For RevBit )
#define REVERSE (1<<RevHiBit) ( Why have not (1<<ForLoBit )

AND code version 12f675

ON_FORWARD EQU (1<<ForLoBit)|(1<<ForHiBit)
OFF_FORWARD EQU (1<<ForHiBit)
ON_STOP EQU 0
OFF_STOP EQU 0
ON_REVERSE EQU (1<<RevLoBit)|(1<<RevHiBit)
OFF_REVERSE EQU (1<<RevHiBit)
ON_BRAKE EQU (1<<ForLoBit)|(1<<RevLoBit)
OFF_BRAKE EQU (1<<ForLoBit)
two pin creat PWM of 12f617 is pin 5 and pin 2 . it is the default of the datasheet? Can choice other pin PWM ?

That is my last question
thank a lot .
rc my life is offline Find More Posts by rc my life
Last edited by rc my life; Mar 14, 2013 at 07:17 PM.
Reply With Quote
Old Mar 14, 2013, 10:54 PM
Registered User
Joined Nov 2012
127 Posts
hi Bruce

I change program successful .I use 12v relay. and FET 9540 + 3 FET 1404. circuit works very well .
Mode forward ,reveser, brake PWM 16khz

I use pin 5 PWM (forward )

use pin 2 ( brake for 9540 )

use pin 5 PWM and pin 7 for reverse ( pin 7 ON transistor ---->relay 12v )

Great


circuit similar to this


rc my life is offline Find More Posts by rc my life
Last edited by rc my life; Mar 14, 2013 at 11:02 PM.
Reply With Quote
Reply


Thread Tools

Similar Threads
Category Thread Thread Starter Forum Replies Last Post
Discussion Ebay 320amp brushed esc and car starter narxer Power Systems 7 Aug 20, 2012 11:31 AM
Discussion Question about using a 10T brushed car esc in a boat, using twin 55T brushed motors SARCFAN Dock Talk 5 Jul 02, 2012 11:58 AM
Found --found/closed/thanks rcfanatic--Brushed r/c car ESC that can handle 11.1 lipo fly_right Cars - Cars and Parts (FS/W) 6 Apr 14, 2012 07:39 PM
Discussion Replacment brushed ESC for the NitroRCX drift car. B dog Electric Power Cars 5 Mar 06, 2012 08:20 PM