peteretep Posted May 22, 2019 Share Posted May 22, 2019 I've got these components so I'll try this for now, can try that method after if it doesnt work Quote Link to comment Share on other sites More sharing options...
Raizer Posted May 22, 2019 Share Posted May 22, 2019 Mount that rectifier away from anything that may melt, they can get fucking hot. I found that the voltage in DC circuit went up whenever I turned the light on, no idea why or how but I'm guessing it's something to do with the common ground between the AC and DC circuits and the way the rectifiers work. Would go from about 14v at cruising rpm to 16-18v. Maybe your larger capacitor will help with that though. 1 Quote Link to comment Share on other sites More sharing options...
Ned Posted May 22, 2019 Share Posted May 22, 2019 how is it wired up? Looks like there is a connection on the rectifier not being used?? Quote Link to comment Share on other sites More sharing options...
Raizer Posted May 22, 2019 Share Posted May 22, 2019 19 minutes ago, Ned said: how is it wired up? Looks like there is a connection on the rectifier not being used?? That's the AC input without a wire in the pic, the wire I used I cut to length to suit where I had the rectifier mounted and it had a female spade terminal. /Basically it wasn't hooked up as it wasn't mounted. 1 Quote Link to comment Share on other sites More sharing options...
peteretep Posted May 22, 2019 Share Posted May 22, 2019 I just need a H8 plug from zebra and I will try solder everything together tomorrow, then it can be plug in to the existing stuff Quote Link to comment Share on other sites More sharing options...
flyingbrick Posted May 23, 2019 Author Share Posted May 23, 2019 4 hours ago, Raizer said: Mount that rectifier away from anything that may melt, they can get fucking hot. I found that the voltage in DC circuit went up whenever I turned the light on, no idea why or how but I'm guessing it's something to do with the common ground between the AC and DC circuits and the way the rectifiers work. Would go from about 14v at cruising rpm to 16-18v. Maybe your larger capacitor will help with that though. From my experience there are three seperate issues that require solving. People everywhere struggle with this and theres a few (for example) on the moped page that keep sharing information thats slightly incorrect for most people. Iv been over this a few times so sorry to bore everyone but im going to start again. If you are going DC then we will assume you are also going 12v 1, you need to rectify your AC signal to DC 2, you need to regulate this to 12v 3, the resulting power supply is 12v dc (as far as we are all concerned) but its TERRIBLE in that it still varies from 0 to 12 (or 14v or whatever) If you dont fix 3, voltage appears to vary as the frequency of the pulses changes, the only way of getting a decent voltage reading is to use a scope. LED lamps will work like shit, incandescent lamps take ages to warm and cool so seem to smooth the voltage out a bit. A stack of capacitors (as you know) makes things tons better. Again, i have said this so many times but people dont get it. The common "trail tech" units do NOT regulate and rectify.. they only perform one function (iv been drinking and cannot remember which one of the two it is). They do have a more expensive model (about $140 delivered) which (with a capacitor) gives absolutely rock solid voltage and DC. Come visit and see my rock solid DC plz. 5 Quote Link to comment Share on other sites More sharing options...
Ghostchips Posted May 23, 2019 Share Posted May 23, 2019 7 hours ago, peteretep said: ok its gone But it may happen that the diode would stop the capacitor discharging through the rectifier. You'd lose like half your watts. Quote Link to comment Share on other sites More sharing options...
IvyMike Posted May 23, 2019 Share Posted May 23, 2019 Any idea what sort of load you are putting on that rectifier? Would've thought Ali would have something in the way of a buck boost converter, something to help stabilize the rectified DC. Maybe this? Quote Link to comment Share on other sites More sharing options...
flyingbrick Posted May 23, 2019 Author Share Posted May 23, 2019 Ali has Chinese regulator rectifiers which claim to be full wave. They are shit. 3 Quote Link to comment Share on other sites More sharing options...
peteretep Posted May 23, 2019 Share Posted May 23, 2019 It will be max about 40W, but mostly I need to convert it from 14V regulated AC to DC Quote Link to comment Share on other sites More sharing options...
IvyMike Posted May 23, 2019 Share Posted May 23, 2019 Yeah, my comment might've been a bit ambiguous. Meant post the rectifier/DC cap. Quote Link to comment Share on other sites More sharing options...
Ghostchips Posted May 23, 2019 Share Posted May 23, 2019 The example code in this, https://forum.arduino.cc/index.php?topic=40982.0 Would that work for multiple input sensors or would it be trying to compare each sensor pin to the others and noticing they're not the same anymore? Quote Link to comment Share on other sites More sharing options...
Roman Posted May 24, 2019 Share Posted May 24, 2019 I do lots of compares to last value to minimize writes to my screen. Every value i declare twice so store last value: Int RPM =0; Int RPM_old = 0; Then in code: If (RPM != RPM_old) [ *Stuff to do if value is different goes here* RPM_old = RPM; ] 1 Quote Link to comment Share on other sites More sharing options...
Ghostchips Posted May 25, 2019 Share Posted May 25, 2019 Got that sorted, cheers. But now i've got a problem with it sending certain execute_CMD's over softwareserial that doesn't appear to be hardware related. Was working fine before though. Quote Link to comment Share on other sites More sharing options...
IvyMike Posted May 25, 2019 Share Posted May 25, 2019 Are you busy waiting serial commands in the main execution loop? Might want to switch to hardware/interrupt based serial communication if that's the case. Quote Link to comment Share on other sites More sharing options...
Roman Posted May 25, 2019 Share Posted May 25, 2019 4 hours ago, Ghostchips said: Got that sorted, cheers. But now i've got a problem with it sending certain execute_CMD's over softwareserial that doesn't appear to be hardware related. Was working fine before though. What are you writing over serial to/from? Perhaps add some commenting at each part of your loop so you can see on the serial monitor what's happening / where it gets stuck? Quote Link to comment Share on other sites More sharing options...
Ghostchips Posted May 25, 2019 Share Posted May 25, 2019 2 hours ago, Roman said: What are you writing over serial to/from? Perhaps add some commenting at each part of your loop so you can see on the serial monitor what's happening / where it gets stuck? I"m not that advanced AKA IDK how to do that. Edit: i think i figured that out. Trying now execute_CMD(0x03, 0, 0x0009); Works perfectly. Now it works but execute_CMD(0x03, 0, 0x0014); ceased working. Quote Link to comment Share on other sites More sharing options...
Ghostchips Posted May 25, 2019 Share Posted May 25, 2019 Hmm. Ok, serial print shows that the input is working well enough, just any command over 0x0009 doesn't work at all. I had it up to 0014 and it worked fine, spec'ed 0020 & 0019 back when it was working to see what would happen. It tried. Weird bug maybe. Quote Link to comment Share on other sites More sharing options...
Roman Posted May 25, 2019 Share Posted May 25, 2019 When you put the "0X00" at the front, its telling the program that you are using hexidecimal. So "10" in hex is 0xA not 0x0010 or if you need to keep that format for the string maybe its 0x000A 1 Quote Link to comment Share on other sites More sharing options...
Roman Posted May 25, 2019 Share Posted May 25, 2019 As a general rule though with Arduino IDE you dont need to specify anything in hex, if you just write "10" or a normal number it assumes you're using normal numbers There's a list of prefixes you can use here:https://www.arduino.cc/reference/en/language/variables/constants/integerconstants/ 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.