No recommendations on controllers, so so many out there these days.
Intermittent no power problem
Re: Intermittent no power problem
That was quick 
No recommendations on controllers, so so many out there these days.
No recommendations on controllers, so so many out there these days.
Re: Intermittent no power problem
Dang! and the potting is supposed to prevent it from breaking. Guess that one is a brick.
I have de-potted a few things like that but not all potting is the same. I heated mine up with boiling water and it gets like rubber and not so hard to dig out. When it cools off its like a rock.
"One test is worth a thousand opinions"
- amberwolf 100 GW
- Posts: 31760
- Joined: Aug 17 2009 6:43am
- Location: Phoenix, AZ, USA, Earth, Sol, Local Bubble, Orion Arm, Milky Way, Local Group
- Contact:
Re: Intermittent no power problem
Hey, at least you knwo it's not internal water damage.rick_p wrote: ↑Feb 20 2021 12:42pmThere won’t be any ability to check any connections inside here, whatever that material is, it was poured in and solid enough that any attempt to remove the circuit board from the housing would certainly destroy it. On to just testing cables and connectors.
5FF392BD-5C3E-4385-8481-BF1C9D074311.jpeg

If you found this advice helpful, supporting contributions are accepted here.
"if it ain't broke, improve it till it is"----Dog-Hauler Cargo eTrike SB Cruiser----The HI-Lebowski: a Lebowski SMD brain running a zombified Honda IMA Inverter: a HOW-TO guide----Cargo eBike CrazyBike2----General Blog
"if it ain't broke, improve it till it is"----Dog-Hauler Cargo eTrike SB Cruiser----The HI-Lebowski: a Lebowski SMD brain running a zombified Honda IMA Inverter: a HOW-TO guide----Cargo eBike CrazyBike2----General Blog
Re: Intermittent no power problem
I’d like to try this but I don’t understand the instructions. I’m confused on how you power the Halls, where the resistor goes, and where the probes (leads) from the voltmeter go.amberwolf wrote: ↑Feb 19 2021 11:34pmThe way to test the sensors without a controller is to power them with something around 5v (3 AA, AAA, C, D batteries in series, an old USB wall charger supply for a phone, etc.), and then to wire up your voltmeter's red test lead with a resistor (anywhere from 1kohm to 10kohm is fine), so the resistor connects one end to the red test lead, and the other end connects to the + of the "5v" powering the sensors. That acts as the pullup from the controller during the signal test.
Then put the black meter lead on the - of the "5v" powering the sensors, and use the red lead on each of the hall signals in turn while slowly hand-turning the wheel (backwards in the case ofa geared hub, either way in a DD hub). As long as the signal toggles from about the same as the 5v supply reads by itself, to around 0v-1v, and all three halls give the same readings, then they're generally fine.
Re: Intermittent no power problem
Perhaps these will help...


As taken from this thread... see it for complete details.
Testing BLDC motor's Phase Wiring - Hall Sensors and Wiring.
Regards,
T.C.


As taken from this thread... see it for complete details.
Testing BLDC motor's Phase Wiring - Hall Sensors and Wiring.
Regards,
T.C.
See my completed Magic Pie V5 rear hub E-Bike build Here!
Re: Intermittent no power problem
Many thanks, this helps immensely, I couldn’t figure out from @amberwolf’s notes how the positive probe could be used for two things at once, but now I think I get it. To make sure I don’t make a horrible mistake, I’m going to construct my tester, take pictures of everything, and post them here before I do the test, just to make sure I understand the schematic correctly and am using the correct resister.TommyCat wrote: ↑Feb 21 2021 9:27amPerhaps these will help...
As taken from this thread... see it for complete details.
Testing BLDC motor's Phase Wiring - Hall Sensors and Wiring.
Regards,
T.C.
Re: Intermittent no power problem
This is just a mockup, I'll solder and shrink wrap all the wires and probe connections to ensure nothing can touch (short out) during an actual test, I just want to make sure I understand the schematic before I do that work. The AC adapter is 5 volt, 1 amp, pin positive.
If this were a real test, I would be testing the blue Hall sensor wire. Please look at the package and let me know if this is the correct resistor for the job.
Re: Intermittent no power problem
Brown black gold is 1 ohm
Brown black orange is 10K ohms
my econo-e-bike https://endless-sphere.com/forums/viewt ... =6&t=97945
Re: Intermittent no power problem
Mock-up is not quite right...
If you were to move your meter's RED test lead probe to the other side of the resistor, leaving everything else the same. I think you would have it.
Review the diagram...
5vdc power supply to hall sensor 5vdc supply in and one side of the resistor, Red meter probe and hall sensor signal (output) wire that your currently checking, on the other side of the resistor.
If you were to move your meter's RED test lead probe to the other side of the resistor, leaving everything else the same. I think you would have it.
Review the diagram...
5vdc power supply to hall sensor 5vdc supply in and one side of the resistor, Red meter probe and hall sensor signal (output) wire that your currently checking, on the other side of the resistor.
See my completed Magic Pie V5 rear hub E-Bike build Here!
Re: Intermittent no power problem
I’ll flip the resistor around. I’m not quite sure why you instructed to review the diagram again though, is there something else not right or not recommended other than turning the resistor around?TommyCat wrote: ↑Feb 21 2021 3:45pmMock-up is not quite right...
If you were to move your meter's RED test lead probe to the other side of the resistor, leaving everything else the same. I think you would have it.
Review the diagram...
5vdc power supply to hall sensor 5vdc supply in and one side of the resistor, Red meter probe and hall sensor signal (output) wire that your currently checking, on the other side of the resistor.
- amberwolf 100 GW
- Posts: 31760
- Joined: Aug 17 2009 6:43am
- Location: Phoenix, AZ, USA, Earth, Sol, Local Bubble, Orion Arm, Milky Way, Local Group
- Contact:
Re: Intermittent no power problem
The resistor doesnt' matter which way it is.
What matters is where the red meter lead is. It has to be on the hall connector end of the resistor, while the 5v has to be on the other end of the resistor.
If you found this advice helpful, supporting contributions are accepted here.
"if it ain't broke, improve it till it is"----Dog-Hauler Cargo eTrike SB Cruiser----The HI-Lebowski: a Lebowski SMD brain running a zombified Honda IMA Inverter: a HOW-TO guide----Cargo eBike CrazyBike2----General Blog
"if it ain't broke, improve it till it is"----Dog-Hauler Cargo eTrike SB Cruiser----The HI-Lebowski: a Lebowski SMD brain running a zombified Honda IMA Inverter: a HOW-TO guide----Cargo eBike CrazyBike2----General Blog
Re: Intermittent no power problem
In an actual test, you don't want to be using a 1 ohm resistor.
I've done a similar setup before but using a little 9v battery as a source. Most hall switches are rated for 24v.

I've done a similar setup before but using a little 9v battery as a source. Most hall switches are rated for 24v.
"One test is worth a thousand opinions"
Re: Intermittent no power problem
Just wanted to make sure that you understood my written directions by comparing it to the illustration. So that you would end up with this...

Although it does recommend a 10K resistor.

See my completed Magic Pie V5 rear hub E-Bike build Here!
Re: Intermittent no power problem
Ah, I get it now, it’s the location of the probe being on the other side of the resistor from the power source. @TommyCat’s picture is worth a thousand words.
I’ll go back to the electronics store and see if I can get a 10k ohms resistor. I have 9 adapters as well.
The schematic drawing wasn’t clear to me, but your picture is worth a thousand words, I get it now, the probe needs to be on the other side of the resistor from the power source. Nice photoshop work by the way!
The electronics store was extremely low on supply of resistors, the employee said they’re phasing out stocking component level supplies because there’s no demand for them anymore. I hope I don’t have to resort to ordering a 10k one online because at that point I might as well order one of those ready made testers for $20.

On the upside, this thread has been incredibly insightful for me, I have learned a ton, and I’m sure it will be found and appreciated by many others. My gratitude to goes out to everyone contributing.


Re: Intermittent no power problem

The photo editing program I used was paint.net if any one has interest in a free photo editor with good capabilities.
May I use your picture in my hall sensor testing thread? Better yet, if you have the time to submit a good picture of your final set-up that I could use. It would be appreciated.
Cheers!
See my completed Magic Pie V5 rear hub E-Bike build Here!
Re: Intermittent no power problem
I have used Paint.net, it is a wonderfully powerful tool for Windows that is 100% free, I highly recommend it for Windows users who want to be able to edit images.TommyCat wrote: ↑Feb 23 2021 9:46amThe photo editing program I used was paint.net if any one has interest in a free photo editor with good capabilities.
May I use your picture in my hall sensor testing thread? Better yet, if you have the time to submit a good picture of your final set-up that I could use. It would be appreciated.
Yes, of course you may use a picture of my final setup, it’s the least I could do for all the help you’ve given me. I went back to the electronics store and they didn’t have any 10k ohms resistors, but there is another store around 10 miles from me that should have more of a selection to choose from. I’m going to try and make it over there this afternoon.
By the way, do you also recommend using a 9 volts as opposed to 5 volts as @fechter mentioned?
Re: Intermittent no power problem
I went to another electronics store, the only other store in a reasonable distance in fact, and the only resisters they have that are close to the recommended 10k are 12k, which are 1/4w, 5% tolerance. I bought a pack in case it will work. Please let me know! Also let me know if it's better to use 5 volts or 9 volts for the power source.
Thanks, Rick
Thanks, Rick
- amberwolf 100 GW
- Posts: 31760
- Joined: Aug 17 2009 6:43am
- Location: Phoenix, AZ, USA, Earth, Sol, Local Bubble, Orion Arm, Milky Way, Local Group
- Contact:
Re: Intermittent no power problem
12kohm will work fine.*
9v works; if you want to test under "actual controller ocnditions" then 5v is what those use. (actually usually around 4.2-4.5v, because osme of them use a diode in series with the hall supply, probably in an attempt to prevent induced voltage spikes, etc from getting back into the 5v supply and damaging or interfering with MCU / etc operation).
* the higher the resistance, the less the current flow, and the more induced noise that is possible in the signal. The way the hall signal works is *almost* like a current loop (like MIDI uses), which is less sensitive to induced noise than a simple voltage-based signal.
9v works; if you want to test under "actual controller ocnditions" then 5v is what those use. (actually usually around 4.2-4.5v, because osme of them use a diode in series with the hall supply, probably in an attempt to prevent induced voltage spikes, etc from getting back into the 5v supply and damaging or interfering with MCU / etc operation).
* the higher the resistance, the less the current flow, and the more induced noise that is possible in the signal. The way the hall signal works is *almost* like a current loop (like MIDI uses), which is less sensitive to induced noise than a simple voltage-based signal.
If you found this advice helpful, supporting contributions are accepted here.
"if it ain't broke, improve it till it is"----Dog-Hauler Cargo eTrike SB Cruiser----The HI-Lebowski: a Lebowski SMD brain running a zombified Honda IMA Inverter: a HOW-TO guide----Cargo eBike CrazyBike2----General Blog
"if it ain't broke, improve it till it is"----Dog-Hauler Cargo eTrike SB Cruiser----The HI-Lebowski: a Lebowski SMD brain running a zombified Honda IMA Inverter: a HOW-TO guide----Cargo eBike CrazyBike2----General Blog
Re: Intermittent no power problem
I agree with Amberwolf. Using a voltage source that is as close to your actual supplied 5vdc source of your controller. Would be, IMHO, a better choice. Especially if working on something with "intermittent" operation. IE: A stronger power source may be able to overcome damaged wires or connections, or perhaps a weak sensor. Sometimes going from 5vdc to 12vdc provided by some controllers will correct a motor hall sensor issue.
The "why" of resistor size selection...
In this testing set-up, the resistor is used as a current regulator. To keep the current below the capabilities of the hall sensor's electronics.
In my notes, I have that a motor's hall sensor will "sink" or short the output leg to ground using about 6.8mA using 5vdc as operational voltage. (That's point zero zero six eight amps) This is a good reason why excellent connections and sound wires are a must with such low current.
Using the formula: Volts= Current X Resistance or it's equivalent Current= Volts divided by Resistance...
Dividing your source voltage used, by your resistor used, will give you the value of the current of the grounded signal wire.
Examples are:
1 ohm.... 5/1= 5 amp
1K ohm.. 5/1000= .005 amp
10Kohm.. 5/10000= .0005 amps
Like Fechter warned, a 1 ohm resistor would not be a wise choice. I think the maximum sink is 20mA. (.02 amp) 1K would be more in line with your actual usage. And the reason higher values are recommended that will also work, is that others may be using higher source voltages. Better safer than sorry.

See my completed Magic Pie V5 rear hub E-Bike build Here!
Re: Intermittent no power problem
5 volts it will be!
Mine will be:
12k ohm.. 5/12000 = .0004 amps
With the idea being less is safer, mine should be safe.
Finished tester: A closer look at the connections, note that again I am connected to the blue Hall sensor at the moment: A look at the probe connection inside the shrink wrap: I dissected an old computer connector to use as mini slip-connectors at the bike's connector. Note that I have already partially removed the red wire, which conveniently has two wires spliced in it, which I used for the inline resistor:
Re: Intermittent no power problem
Looks good.
How's everything testing out for you?

How's everything testing out for you?
See my completed Magic Pie V5 rear hub E-Bike build Here!
Re: Intermittent no power problem
I went out to the garage to start testing last night but before I started on the Hall sensors test, for whatever reason, I decided to install the controller to make sure it was sending 5 volts to each sensor because that was something I had never checked. Well, as I was plugging in all the connections, the slip-connector for the main positive wire from the battery to the controller slipped right off the wire

When this whole process began, the first test I did was to disconnect and reconnect every connection... except the two wires from the battery to the controller, because they were shrink wrapped, and I distinctly remember tugging at them a little to make sure they felt snug and tight. It wasn’t until much later on that I decided to cut the shrink wrap to remove the controller to have a look inside it, and for whatever reason, I didn’t notice it being loose at that time.
Needless to say, I am completely embarrassed to discover this after all this trouble and support everyone has given me.

If the problem is solved I will say this, I apologize for dragging everyone though this with me, but for what it’s worth, I learned a ton, and hopefully this thread will help others.

One more note, I did test the controller output to the sensors after fixing the battery wire, and it’s getting 5 volts in, and putting out 3.3 volts to each sensor wire.
Re: Intermittent no power problem
Well, at least you learned a lot of other good stuff on the way to learning "double check the battery leads first"!

Re: Intermittent no power problem
I find myself wondering if this bike charges thru the discharge leads, and if answering the question, posed early on, about if the problem only occurs after a charge, which the OP dismissed as it "couldn't possibly be part of the problem", would have saved a LOT of totally unnecessary, wasted, time, effort, and energy on the part of several people.
Every single thread in this section should have an automatic instruction to check thoroughly for loose wires and connections. This instruction should be detailed, with pictures, repeated at least three times, with a clear and emphatic instruction to perform the procedure AT LEAST twice.
Because they won't freakin do it, and they won't do it right the first time, and a clear majority of the problems are totally and completely due to this failure.
Every single thread in this section should have an automatic instruction to check thoroughly for loose wires and connections. This instruction should be detailed, with pictures, repeated at least three times, with a clear and emphatic instruction to perform the procedure AT LEAST twice.
Because they won't freakin do it, and they won't do it right the first time, and a clear majority of the problems are totally and completely due to this failure.
"Not being treated like a dumb dick is one of the incentives we have to become less stupid." - Balmorhea.