Forum >edison control motor
LattePandaGeneral

edison control motor

userHead friedland Israel 2015-03-22 10:20:45 7479 Views3 Replies
first: english is not my ךanguage so mybe my english is not the best....

so i work with this module http://www.dfrobot.com/index.php?route=product/product&product_id=1238

i flush yokto for edison and this work fine,
i work with eclipse (and not from arduino IDE), so i work with "mraa" library.

so what i try to do is to control on analog pim and the motor, and (suprice!) this not work,
what i know yet, this the ananlog pin and motor can control with i2c (addapter 1 and address 4), and they connect to atmga8,
so i connect to i2c but i never get answer and i not can control on motor and recive data from analog pins,

this my code when i try to recive data from analog pins 5

uint8_t bus[] = {0xA5 ,0xA5};
int Highvalue;
int Littlevalue;
mraa::I2c* i2c = new mraa::I2c(1);
mraa_result_t x = i2c->address(4);
mraa_result_t z = i2c->write(bus, sizeof(bus));
Littlevalue = i2c->readByte();
Highvalue = i2c->readByte();

std::cerr << "adress " << z << " write " << x << " read " << Littlevalue << " and "<< Highvalue << " " << std::endl;

the result is : "adress 0 write 0 read 0 and 0 "

thank you
2015-08-11 18:57:58 Just got the news that this could be fixed by updating the firmware, click to make it!
Edison Firmware Update Tutorial
userHeadPic Leff
2015-08-11 18:51:20
friedland Israel wrote:dont buy this board because it dont work and not have support from market


Sorry for that the edison's flaws bringing trouble to you, indeed , we've aware of the analg pin of some edison having some problem to read value , and are comfirm if it's a common problem. If it is, then we will stop the selling and fix it, and we will ship you a replacement or give you a full refund! Thanks for you understanding!
userHeadPic Leff
2015-03-30 14:41:39 dont buy this board because it dont work and not have support from market userHeadPic friedland Israel