Where did you initialise serial data speed on Bluetooth device?
Cyclegadget is right - it's either when pairing or whenever connection is established
Even if baud rate was wrong you'd still receive something - if you don't then it has to be something else.
Verify if the module and the mobile works using a USB bluetooth dongle and a program like putty. Also check the datasheet of the module and the settings - is the module set as slave or master ? For apps I created it has to be set as master
Then copy and paste the URL into a QR code generator, generate a QR code and scan it using the app. You might as well use the feed I created for the app - it's the default URL set in the app so you don't have to enter it - it's already there
I would prefer to use just one belt drive transmission for simplicity sake. Ohh and before you ask - controlling either of them isn't a problem for me. Also I am aware that I'd have to add position sensing. I don't plan to mount more than 1 or 2 kg on it
Personally, I find the step motor better as it should (at least theoretically) be more predictable - whereas the RPM of the DC motor would be rather unpredictable - geared motors require more current when they start up, don't they? That would probably make things a little bit more complicated as current to RPM would be as predictable as I'd like to.
Has anyone of you got experience with similar systems or know how commercial products are built?
thx but I already have an HC-SR4. I know there are IR based proximity sensors but they have limited range and are very expensive. I have experimented with IR before and I know the range is much greater - it would be cool if I could come up with a cheap IR sensor.
Turns out a couple of turns of sticky tape isn't enough to block IR beam. Replaced with something more substantial and it kind of works
I say kind of as it senses objects but not very consistently. I am sure it's not only because some objects reflect IR better than others - it's more complex...
When object is sensed let's say 60 cm from the sensor the sensor keeps sensing it even when I move it 100 cm away from it. But if I move any further and the sensor stop receiving the beam I have to move the object back to 60cm distance from the sensor for it to start sensing it again
It seems the IR receiver circuitry kind of adapts or something... I guess that's caused by the circuitry inside the IR receiver. The code I use doesn't work properly - don't know why... 38khz frequency suggests 26us period, right ? Well I thought I had it wrong (since it was 26us ON and 26us OFF) that but I changed it to 13us ON and 13us OFF and the result is the same.
If I use the IRlibrary to generate 38khz frequency on the LED the range drops to like 30 cm max but it is consistent
What's even better - I get about 3-4 meter sensing range if I use a remote control as the IR source