Search found 16 matches

by Sylvan_YZY
Wed Feb 22, 2017 1:13 am
Forum: General discussion
Topic: Questions about the EEPROM lib
Replies: 4
Views: 289

Re: Questions about the EEPROM lib

I am not sure of whether this is why those addresses are used, but the flash memory in the F103Cx is in 1k pages. i.e the smallest area that can be erased and written to again is 1k. Note. in the larger variants e.g F103Z, the flash page size is 2k Also remember there is a finite limit to the numbe...
by Sylvan_YZY
Tue Feb 21, 2017 2:44 am
Forum: General discussion
Topic: Questions about the EEPROM lib
Replies: 4
Views: 289

Questions about the EEPROM lib

hello just a few question I encounter 1. why there is 2 page base? e.g. EEPROM.PageBase0 = 0x801F400; EEPROM.PageBase1 = 0x801F800; EEPROM.PageSize = 0x400; and if i set to these values, does that mean I have half the usable capacity compared setting to EEPROM.PageBase0 = 0x801F000; EEPROM.PageBase1...
by Sylvan_YZY
Mon Feb 06, 2017 10:44 am
Forum: General discussion
Topic: How to pass already declared class objects to a function? General c++ question
Replies: 8
Views: 303

Re: How to pass already declared class objects to a function? General c++ question

void changeLeds(object& led)
{
led.setpixelcolour (255,255,255);
led.show;
}

the "&" prefix get you a reference to the passed object, just the same as what it passed to, rather than a copy
there are also other ways , like the pointer but it's a little more complicate
by Sylvan_YZY
Thu Dec 22, 2016 1:05 pm
Forum: General discussion
Topic: Anyone familiar with 3-wire brushless dc motor control?
Replies: 9
Views: 1010

Re: Anyone familiar with 3-wire brushless dc motor control?

OK, what remained is the power supply. These drivers work with 4.5V and above. What supply voltage do you use? Check the way you interface the blue pill (3.3V) to the driver supply (4.5V+). Also, check that the clamping diodes are in place, not all driver ICs have them included. EDIT You could furt...
by Sylvan_YZY
Thu Dec 22, 2016 8:26 am
Forum: General discussion
Topic: Anyone familiar with 3-wire brushless dc motor control?
Replies: 9
Views: 1010

Re: Anyone familiar with 3-wire brushless dc motor control?

TB6612 has extra input pins (compared to L298n) which you should take care of: PWMx (should be tied to "1") and STB (-> "0"). Instead, I would rather use a 3-phase driver (like L6234). thanks for the advice, but i tried that. both pwms i pull them to 1. in fact it sort of rotating, like only 2 of 3...
by Sylvan_YZY
Thu Dec 08, 2016 4:57 am
Forum: General discussion
Topic: Anyone familiar with 3-wire brushless dc motor control?
Replies: 9
Views: 1010

Re: Anyone familiar with 3-wire brushless dc motor control?

The other essential thing is to read 3 hall sensors installed inside or outside of the motor. From my point of knowledge only brushless fans and big fat industrial servos have hall sensors. I'm trying to do a brushless gimbal on stm32f103c8. I learn the basic idea here: http://elabz.com/bldc-motor-...
by Sylvan_YZY
Wed Dec 07, 2016 1:50 am
Forum: General discussion
Topic: Anyone familiar with 3-wire brushless dc motor control?
Replies: 9
Views: 1010

Re: Anyone familiar with 3-wire brushless dc motor control?

The other essential thing is to read 3 hall sensors installed inside or outside of the motor. These are used to do the speed control of the motor. Without them, the movement of the motor is not precise. that's essential when you try to accelerate the motor to a high rate. but in gimbal control the ...
by Sylvan_YZY
Tue Dec 06, 2016 11:01 am
Forum: General discussion
Topic: Anyone familiar with 3-wire brushless dc motor control?
Replies: 9
Views: 1010

Anyone familiar with 3-wire brushless dc motor control?

Dont know where to post the thread sorry. I'm trying to do a brushless gimbal on stm32f103c8. I learn the basic idea here: http://elabz.com/bldc-motor-with-arduino-circuit-and-software/ now I got a gb2208 gimbal motor, and H-bridge board(mention later), use stm32 output the correct phase or sin wave...
by Sylvan_YZY
Mon Oct 17, 2016 12:32 pm
Forum: General discussion
Topic: I2c stuck when run with multiple servos, need some guidelines
Replies: 5
Views: 374

Re: I2c stuck when run with multiple servos, need some guidelines

have you checked with a logic analyzer what exactly is happening? when i was experimenting with motion sensors (also via i2c), i was getting seemingly random disconnects (usually the sensor not acknowledging). After lots of searching i found a mistake in what i sent, and the sensor randomly chose p...
by Sylvan_YZY
Mon Oct 17, 2016 6:24 am
Forum: General discussion
Topic: I2c stuck when run with multiple servos, need some guidelines
Replies: 5
Views: 374

Re: I2c stuck when run with multiple servos, need some guidelines

Default I2C (Wire) library is still using bit-banged software I2C, so its possible that the overhead of running the servos is interfering with the I2C timing. AFIK hardware I2C (Wire) is now working OK, after several people updated and bug fixed the original code (written my leaflabs). So, I'd reco...