Zoomx's postbag

Tell us about the cool things you've recently got
User avatar
zoomx
Posts: 567
Joined: Mon Apr 27, 2015 2:28 pm
Location: Mt.Etna, Italy

Re: Zoomx's postbag

Post by zoomx » Sat Jun 17, 2017 12:05 pm

You can focus the lens!

User avatar
RogerClark
Posts: 7693
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Zoomx's postbag

Post by RogerClark » Sat Jun 17, 2017 12:42 pm

zoomx wrote:You can focus the lens!
I wonder if it would focus to a few cm for a car or robot

User avatar
zoomx
Posts: 567
Joined: Mon Apr 27, 2015 2:28 pm
Location: Mt.Etna, Italy

Re: Zoomx's postbag

Post by zoomx » Sat Jun 17, 2017 5:00 pm

It is possible to focus to few cm and less.

User avatar
RogerClark
Posts: 7693
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Zoomx's postbag

Post by RogerClark » Sat Jun 17, 2017 9:06 pm

zoomx wrote:It is possible to focus to few cm and less.
Excellent.

User avatar
RogerClark
Posts: 7693
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Zoomx's postbag

Post by RogerClark » Mon Oct 30, 2017 10:23 am

@zoomx

I decided to buy 2 of those small robots as well.

Did you managed to do much with the ones you bought ?

User avatar
zoomx
Posts: 567
Joined: Mon Apr 27, 2015 2:28 pm
Location: Mt.Etna, Italy

Re: Zoomx's postbag

Post by zoomx » Tue Oct 31, 2017 9:28 am

I tested an ESP8266 but it seems that the two batteries are unable to power it. I tried a DC/DC too but with no luck.

I have to test the LDR reading and the ADNS3080.

This little sketch drive the robot in a 8 shape track, just to test PWM.
Unfortunately it seems that you can't drive the motor in reverse, you can go forward only. But I believe that you can't get a car toy cheaper than this one.

Code: Select all

/*
  STM32_robot02
  Test sketch for cheap robot kits like D2-1 and D2-5
  Added pwm
  https://developer.mbed.org/media/uploads/hudakz/maplemini_pinout01.png
  http://wiki.stm32duino.com/images/a/ae/Bluepillpinout.gif
*/

#define motor1 PA8  // D7 or 27 on Maple Mini
#define motor2 PA9  // D8 or 26 on Maple Mini
/*
   motor1  | U   |
           |     | motor2
           |     |
     GND   |     |
*/

void setup() {
  Serial.begin(115200);
  Serial1.begin(115200);
  Serial2.begin(115200);
  Serial.println("Hello world this is Serial");
  Serial1.println("Hello world this is Serial1");
  Serial2.println("Hello world this is Serial2");
  pinMode(motor1, OUTPUT);
  pinMode(motor2, OUTPUT);
}

void loop() {
  for (int i = 0; i <= 65472; i += 1023) {
    pwmWrite(motor1, i);
    pwmWrite(motor2, 65472 - i);
    Serial.println(i);
    Serial1.println(i);
    Serial2.println(i);
    delay(250);
  }
  delay(10);
  for (int i = 0; i <= 65472; i += 1023) {
    pwmWrite(motor2, i);
    pwmWrite(motor1, 65472 - i);
    Serial.println(i);
    Serial1.println(i);
    Serial2.println(i);
    delay(100);
  }
  delay(10);
}

User avatar
RogerClark
Posts: 7693
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Zoomx's postbag

Post by RogerClark » Tue Oct 31, 2017 9:39 am

OK.

I paid $5 AUD, which I think is about 3.3 Euros

I guess I should also buy a cheap H bridge e.g.

https://www.ebay.com.au/itm/L9110S-H-br ... 1736182097

User avatar
zoomx
Posts: 567
Joined: Mon Apr 27, 2015 2:28 pm
Location: Mt.Etna, Italy

Re: Zoomx's postbag

Post by zoomx » Tue Oct 31, 2017 1:20 pm

L9110S is rated for small motors like the ones that are in this cheap car. I have one of this, it's a good idea for a stronger modded version.
Thanks, I forgot to have one!

User avatar
RogerClark
Posts: 7693
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Zoomx's postbag

Post by RogerClark » Tue Oct 31, 2017 8:02 pm

Yes.

I know that those H bridge modules can only drive the small motors.

I have a larger H bridge on another car, but it would be too big and heavy for these little cars.

It would probably be good if I could replace the PCB on these little cars with a custom pcb with headers for a Blue Pill, but I will need to wait until the arrive, so I can take accurate measurements of the existing PCB

User avatar
zoomx
Posts: 567
Joined: Mon Apr 27, 2015 2:28 pm
Location: Mt.Etna, Italy

Re: Zoomx's postbag

Post by zoomx » Mon Jan 29, 2018 1:40 pm

Some weeks ago in my postbag I found this
Image
It is a DG-R8S an outdoor Temperature/Hygrometer transmitter over 433MHz made by Digoo for their weather stations.
It is cheap, 4.98 US$
https://www.banggood.com/Digoo-DG-R8S-4 ... 39603.html
I tried to decode it using the RC-switch library without success.
Then I used an SDR dongle with rtl_433
https://github.com/merbanan/rtl_433
and I got this

Code: Select all

Registering protocol[01] Rubicson Temperature Sensor
Registering protocol[02] Prologue Temperature Sensor
Registering protocol[03] Silvercrest Remote Control
Registering protocol[04] ELV EM 1000
Registering protocol[05] ELV WS 2000
Registering protocol[06] Waveman Switch Transmitter
Found 1 device(s):
  0:  Generic, RTL2832U, SN: 77771111153705700

Using device 0: Generic RTL2832U (e.g. hama nano)
Found Elonics E4000 tuner
Exact sample rate is: 250000.000414 Hz
Sample rate set to 250000.
Sample rate decimation set to 0. 250000->250000
Bit detection level set to 10000.
Tuner gain set to Auto.
Reading samples in async mode...
Tuned to 433920000 Hz.
Sensor temperature event:
protocol  	= Prologue
button    	= 0
battery   	= Low
temp      	= 20.3
humidity  	= 61
channel   	= 1
id        	= 9
rid       	= 221
hrid      	= dd
9d d0 0c b3 d0
So the protocol seems to be Prologue. I found this library on GitHub
https://github.com/c-math/PrologueDecoder
that was able to decode the transmission but without humidity. Looking into the library I found that the humidity was decoded but there was no place in the decoded structure so I forked the library and modified to get the humidity. It works.
https://github.com/zoomx/PrologueDecoder

Few days later I got this one
Image
it is a Digoo DG-HOSA door sensor used in WiFi house alarms.

This time rtl_433 was not able to decode it but the Rc-switch receive demo advanced sketch had succes when I used the RXB14 module, instead using the classic cheap receiver I got no results, even using the elicoidal antenna.

Code: Select all

Decimal: 9381526 (24Bit) Binary: 100011110010011010010110 Tri-State: not applicable PulseLength: 364 microseconds Protocol: 1
Raw data: 11288,1148,352,396,1096,400,1084,396,1096,1136,356,1132,356,1136,352,1132,360,388,1116,376,1108,1120,372,376,1108,380,1112,1120,368,1124,372,372,1112,1120,372,376,1108,380,1108,1124,368,380,1108,1124,368,1120,372,372,1108,
This is the RXB14
Image
This one is the more common cheap receiver
Image

Post Reply