These are chat archives for SmingHub/Sming

7th
Feb 2016
hreintke
@hreintke
Feb 07 2016 08:39
@anakod @dobrishinov :
If we want to support also the "small lwip" we can make it a Link time option in the makefiles.
alon24
@alon24
Feb 07 2016 10:07
to anyone using regular pwm, how do you STOP a motor using PWM
PwmMotors.analogWrite(leftMotorPWM, 1023); -> HIGH - OK
PwmMotors.analogWrite(leftMotorPWM, 0); -> DOES NOT STOP MOTOR!
???
DriverPWM pwmMotors;
pwmMotors.initialize();
pwmMotors.analogWrite(leftMotorPWM, 1023);
pwmMotors.analogWrite(leftMotorPWM, 0);
hreintke
@hreintke
Feb 07 2016 10:12
@alon24 :
In testing HardwarePWM for Sming_RTOS I noticed an anomaly too in the PWM behavior.
Did not get into the detail of it but my current idea is that around both highest and lowest values of PWM value the behavior is not correct. If that is correct the issue should go if you don't set zero but a little above zero
alon24
@alon24
Feb 07 2016 10:13
k i will try 1 :) (not hw pwm. driverpwm) this is in nonos
tried 1 and 2 - my motor whines (makes a whining sound) - not good
hreintke
@hreintke
Feb 07 2016 10:16
OK, did not try/use driverpwm. That will not be available in Sming_RTOS as the sofware timer resolution does not support microseconds but only milliseconds.
alon24
@alon24
Feb 07 2016 10:17
can u set hw pwm on any gpio?
i need ports 4,5
hreintke
@hreintke
Feb 07 2016 10:21
These are the pins from basic_hwpwm : uint8_t pins[8] = { 4, 5, 0, 2, 15, 13, 12, 14 };
I think you can also set others in there but don't know to which pins it is limited.
Number of simultaneous is 8.
alon24
@alon24
Feb 07 2016 10:21
4,5 is googd for me
what is max value?
22222?
hreintke
@hreintke
Feb 07 2016 10:23
Don't know for sure. The 2222 is used in the example but beware of the remark above on anomalies.
alon24
@alon24
Feb 07 2016 10:24
who can know about this? hw_pwm or driverpwm? I want my car to work :)
hreintke
@hreintke
Feb 07 2016 10:28
@hrsavla made the example
alonewolfx2
@alonewolfx2
Feb 07 2016 10:51

@hreintke

Will only transmit (better : you will never receive a char)

PS: it has boot output
hreintke
@hreintke
Feb 07 2016 11:21
@alonewolfx2 :
don't understand what you want to ask or tell.
alonewolfx2
@alonewolfx2
Feb 07 2016 11:30
@hreintke just i am telling. tx1 has same output with main tx on boot
alon24
@alon24
Feb 07 2016 11:41
k, so noAnalogWrite - STOPS driverPWM
HappyCodingRobot
@HappyCodingRobot
Feb 07 2016 11:44
hi, i've a little library question.. what is the intention to make writedata() and readdata() in the SPI lib protected?
i think it would be better to make them public as transfer()