QC 3.0 DIY Solar panel.

One of the biggest problem today about the solar panels is the part after the solar cells, so the converter/ regulator. I wanted to write that for have the best performance with the solar cells for a smartphone / battery.

What do you need:

Total Cost (with 3 Solar Panel) = 26.50€

If you don’t have wires & soldering parts:

 

I choose to use a Cigarette Lighter Socket + QC Charger because at the moment we can’t find QC 3.0 modules, we find them only in the Car chargers.

img_8775

 

So lets go

Part 1

Create holes, it’s just for attach the 3 solar panels

img_8777

 

Part 2

Solder the panel, for increase the voltage like here, we have to connect like that:

(-) panel1 (+) —— (-) panel2 (+) —– (-) panel3 (+)

if you want to increase only the current you have to connect the (-) with the (-) and the (+) with the (+). But voltage will stay at 5v so the QC 3.0 will not work.

img_8791

img_8792

 

Part 3

Solder the (-) and (+) to the cigarette socket.

img_8795

img_8796

img_8798

Part 4

Test it !

I use the new Xiaomi 20 000mAh power bank 2 (QC 3.0) with a low capacity (2/4 bar).

img_8807

img_8804

Around 10W !

When i made that picture the sun started to drew low, it was 20h14 and the panels were not super clean there was a little of dust on them. 20h14 is bad for the solar power, so it’s a really good result!

You can add more power by adding a solar panel in parrallele for exemple so you will need 6 panels (because we have to add a second panel for the 3 or the parrallel system will not works). But the QC is limited to 1.5A at 12v so it’s overpowered.

60Ah DIY Power Bank for 50€

I’ve build today a 60Ah power bank with 12x 26650 Cells, they are really interesting for price/wh compared to the normal 18650, i paid them less than 4€ for 5 000 mAh cells (18wH), the bad side is the weight, more important than the best 18650 cells.

  • For the 26650 for each gram there is 52,4 mAh
  • For the 18650 (Panasonic 18650B 3500mAh), for each gram there is 73 mAh.

But the discharge rate is really good, it can handle 20A, and at 15A the capacity stay around 5Ah !

Review and tests of the Liitokal 26650 5,000mAh: link

So i think if you are looking for a portable(or not) power bank it’s surly the best choice, i will personaly use it with 4x5w solar panels, and i plan to add more cells in the futur for increase the capacity and power.

For the moment i use it with a 3S BMS 25A ( HX-3S-FL25A ):

chrome_2017-07-02_22-49-42

AliExpress Link

Be careful with this BMS the B2(and not the B1) must be connected after the B+ ! Like here:

chrome_2017-07-02_23-05-11

It’s limited 25A but because there are 12 Cells it can go up to 80A for continuous discharge and even up to 120A but the capacity will descrease to 3,5Ah for each cell. So it can produce around 888w(80A) and max 1322w (120A).

The Cells are sold around 24€ for 6 Cells, i got them for 22€ so with the bms it’s less than 50€.

chrome_2017-07-02_23-18-55

AliExpress Link

If you want to use holders like me, they are really expensive but the quality is good(we also find the same one for the 18650 cheaper but I think it’s because the 18650 are very popular)

chrome_2017-07-02_23-25-06

AliExpress Link

We find also this one cheaper (so 1€ for 2 holder):

chrome_2017-07-02_23-25-35

AliExpress Link

More about the A20 Plus (Pictures of the final product)

Hey

I found more info about the new A20, apparently it was available on taobao but idk why we can’t buy it at the moment, here is the link: https://world.taobao.com/item/537201526509.htm?fromSite=main&spm=a1z10.1-c.w4004-6565671699.4.OdxtAG

Important points:

  • Esp8285 for the wifi
  • No video mode available(there is an AT command for that)
  • 12-15$
  • Compatible with OV7670,GC0308,GC0328,GC0309 cameras (0.3M)
  • Flash

 

And we have a picture:

tb2buhgxgzyqebjy0fbxxbzapxa_882680026_290x290

cd322635060704491

 

So there is two information:

It’s surly the biggest Ax board( and maybe there is also an UART ?)

The price: it’s very close to the A6C board for the seller, the AC6 cost 7,49$ and the A20 7,49$ (50Y and 49Y) so it will be surly around 12-13$

They added also two leds surly for the flash, in the A6C AT Commands we can activate it thx to the Camera parameters commands.

 

They also made an android app for use the A20Plus camera, here some pictures:

2016-08-17_57b445dae7c4e

I found the Application and explanation here: http://pan.baidu.com/s/1o7UleBo#path=%252FGPRS%25E6%25A8%25A1%25E5%259D%2597%25E8%25B5%2584%25E6%2596%2599

You can also go to the online doc here, i found the last pictures here and they explain the code(in chinese): http://www.showdoc.cc/5627?page_id=37300

The first code is: 123456

We can find more info about the code here, but i can’t download his zip because we need to pay for it! : http://www.itdadao.com/articles/c15a342329p0.html

I found the biggest part of these informations on this page:

http://bbs.ai-thinker.com:8008/forum.php?mod=viewthread&tid=2141

Pinout and other pictures of my previous post: https://raymondtunning.wordpress.com/2016/09/08/a20-the-new-gprsgsm-product/

Details of the A6C(like the A20 with no wifi), At commands for control the camera, demo etc: https://raymondtunning.wordpress.com/2016/09/08/best-wireless-cam-solution-a6c/

The AI-Thinker Ax “program”

I’ve discovered with this page: http://www.aliexpress.com/item/GPRS-module-GSM-module-A6C-SMS-Speech-board-minimum-system-board-A6C-adapter-plate-A6C-module/32709458659.html?spm=2114.30010308.3.116.Fp9BF9&ws_ab_test=searchweb201556_0,searchweb201602_2_10057_10056_10065_10068_10055_10054_10069_10059_10058_10073_10017_10072_10070_10060_10061_10052_10062_10053_10050_10051,searchweb201603_4&btsid=042d14e1-ba67-412b-bd4b-ac37c6d9666e that AI-thinker made a page for test the A6/A6C/A7.

But the negative point is it’s in chinese… it’s really not easy to understand but it’s still a great idea:

http://test.ai-thinker.com/

 

htb1nacllxxxxxc0xfxxq6xxfxxxa

 

I made a pdf copy if the link is dead(it’s only for the A6C):

 

gprs-module-gsm-module-a6c_sms-_-speech_-board_minimum-system-board-a6c-adapter-plate-a6c-module-antenna-camera-in-modules-from-consumer-electronics-on-aliexpress

A20 ? The new Gprs/Gsm product

a20-pins

If you read the infos about A6/A6C/A7 in this pdf: http://wiki.ai-thinker.com/lib/exe/fetch.php/modules/datasheet/a6/ai-thinker_a6_a7_a6c_at_v1.02.pdf you can notice in the title there is also the A20 but i found nothing about this module in internet it’s because they actualy work on it, we can find the information here : http://wiki.ai-thinker.com/lib/exe/fetch.php/modules/datasheet/a6/a6_a6c_a7_datasheet.pdf

So the A20 will combine WIFI/GPRS/GSM/CAMERA, they are the same poeple who made the ESP8266 so maybe they will use this chip for the A20.

There is nothing in the datasheet about the wifi so idk why exacly they added the A20 name, and for the second page they said in chinese “to be updated” and “See full functional test board reference schematics”.

EDIT: I found in a doc here: https://drive.google.com/drive/folders/0B6uNNXJ2z4CxZjZXdy10endmZXM more info about the A20, they will use the 8285 chip for the wifi!

Here is the pin description:

More pictures:

a20-details
Top

 

a20-vue-du-dessou
Bottom

So maybe thx to this chip it will be easiest to find a solution for program the A20 with the Arduino environment… I hope.

The google Drive link come from here: http://www.dx.com/p/gprs-a7-serial-gprs-gps-module-core-developemnt-board-for-arduino-445823#.V9HzFpiLSUk

Best Wireless Cam solution : A6C ?

free-shipping-camera-gprs-module-gsm-module-a6c-text-voice-development-board-the-minimum-system-board

 

I’ve discovered the A7, an anwsome solution for have GPS and GPRS in the same chip thx to the great Andreas Spiess youtube channel:

But he he did not talk about the A6C module, maybe because the module was not annonced at this moment, let’s me tell you the avantages of this module:

  • Size: If you know the others cam solutions for the arduino and tiny devices, you surly know the ArduCam, and it’s a BIG module because the Arduino can’t be connected directly to the Camera or we need a lot connections so a big module like this one:
    57
    OV7670

    The A6C has the same cam(OV7670) but it’s more smaller and we need just 2new connection for the Arduino, RX/TX just for the cam!a6c-module-03

  • Price: Surly the important point because we can have smaller, better résolution, better gprs etc but much more expensive! I think for exemple to the Raspberry pi Zero and his high definition camera, normaly they cost around 25$ and with a good Gsm/gprs module around 50$. I also wanted to do a wireless camera with a Esp8266, it’s a cheap module but the cameras are really expensive, like this one: http://www.uctronics.com/arducam-2mp-v2-mini-camera-shield-with-esp8266-nano-esp-12f-evaluation-kits.html and i didn’t find a solution above 25$…  But with the high price we have also better résolution, 2M against 0.3M max for the A6C but personaly i don’t know what can happen to a wireless module so i prefer a cheap one which do the basic job. His price is around 12$, with the camera which cost normaly around 3.5$. But the module is likely to cost less in the future because i’ve found only few sellers.

 

I think there is no better deal for a wireless Cam module at this moment, 12$ is a great price and it can be really interesting for the makers community which don’t want to spend more than 15$ for send a picture through a wireless module.

DEMO

 

supported_cam
Camera

AT Commands

AT+CAMSTART         (Start the Cam and choose the resolution)

  • AT+CAMSTART=0       (QVGA: 320×240)

  • AT+CAMSTART=1         (VGA: 640×480)

  • AT+CAMSTART=2        (QQVGA: 160×120)

 

AT+CAMSTOP       (Stop the camera)

AT+CAMCAP         (Take a picture, the default format is .JPG)

AT+CAMRD          (Read the content of the picture)

  • AT+CAMRD=fromaddr,toaddr;

 

AT+CAMREC (Not available for the moment)

AT+CAMCFG (Camera configuration)

  • AT+CAMCFG=mode,param

This is pure Reverso traduction because i don’t understand what they really say(in chinese):

  • 0 indicates that the flash mode, the parameter is 0, Off, 1, 2 Open Automatically
  • 1 indicates whether a night market, the parameter is 0, no night vision, 1 open the night vision
  • 2 indicates that the image quality, parameters 0,1,2 //7,10,14,20
  • 3 indicates that the image is rotated, the parameter is 0, indicating that will not rotate 1 rotate 90 degrees, 2 rotate 180 degree and 3 rotate 270 degree
  • 4 The exposure parameters -2,-1,0,1,2
  • 5 brightness, parameters -2,-1,0,1,2
  • 6 white balance, parameter 0-auto,1-daylight,2- daylight (0x08),3-cloudy(0x09),4- (0x0a) tungsten lamps
  • 7 contrast parameters 1-5;

 

Interesting Docs:

Pinout:

a6_a7_a6c_datasheet-en (Page 15 for the A6C)

AT Commands(in chinese)

ai-thinker_a6_a7_a6c_at_v1-02 (Page 171 for the A6C)

 

Few interesting links:

Module in AliExpress:   http://www.aliexpress.com/item/Free-Shipping-Camera-GPRS-module-GSM-module-A6C-text-voice-development-board-the-minimum-system-board/32713287145.html?spm=2114.30010308.3.2.ywlegh&ws_ab_test=searchweb201556_0,searchweb201602_2_10057_10056_10065_10068_10055_10054_10069_10059_10058_10073_10017_10072_10070_10060_10061_10052_10062_10053_10050_10051,searchweb201603_4&btsid=e228f014-6743-4419-9334-4f7f6f0fad21

Doc: http://www.electrodragon.com/w/GSM_GPRS_A6_Module

How to use it: http://www.electrodragon.com/w/File:A6C_Cam_Capture.zip  (You can open with Google Chrome or IE)

Doc from IA-Thinker(there is a part in chinese :/) : http://wiki.ai-thinker.com/lib/exe/fetch.php/modules/datasheet/a6/ai-thinker_a6_a7_a6c_at_v1.02.pdf

 

 

Tcp Communication A6 Module

If you want to test the tcp communication with the A6 Module you can follow this tutorial (but use the AT commands for the A6) BUT before, make sure the port is open, go in your router and create a  “NAT”, choose the port you want(something like 747), internal and external(the same), for the device choose the internal IP of your computer.

You can check if the port his open with this website:

http://www.yougetsignal.com/tools/open-ports/

(You must creat the server before check the port or it will not work!)

Check his channel because he has a lot of things about Gprs/gsm module, they are for the SIM900 but the A6 is close to this module.

TCP with Gprs Gsm A6 Module

Good news for the A6, there is a simple way for TCP, i wrote in the previous article the long way with AT+CGACT=1,1 because AT+CIICR did not work for me but Simon f found the good order for use it, so i give you his code:

 

**Power Up**

AT+CSTT=”free”,””,””

 

OK

AT+CGDCONT=1,”IP”,”free”

 

OK

AT+CIICR

(we can wait a lot of time, if you see COMMAND NO RESPONSE! do nothing, this mess is send if a command don’t return a message after a while)

 

+CTZV:16/6/8, 1:33:8:8

 

+CGREG:5

 

OK

 

+CGREG:5

AT+CIPSTART=”TCP”,”speedtest.tele2.net”,21

 

+CDNSGIP:1,”speedtest.tele2.net”,”90.130.70.73″

 

OK

 

CONNECT OK

 

OK

 

AT+CIPCLOSE               (If you want to close the actual tcp connection)

AT+CIPSHUT                 (If you want to stop the internet connection)

I invite you to go to see his comments for more info and his article!

A6 Gsm/Gprs Module PinOut and data

There is a new module, very cheap around 4$( Here). We can call/send sms and normaly connect to the website and surly use MQTT(i will explain why after). The good thing is we don’t need to spend more money for use it, there is a antenna and we just need to connect the speakers and a mic on the pins for use it. So it’s very close to the SIM800L(Here with bluetooth and rf in it!).

I recieved the module a week ago but i found nothing about the pinout, and the only things writed on it was 1, 12 and chineses things, maybe rx, tx ? No, with google translation i discovered it was like “made in shenzhen”…  I tried different combination based on the videos, but nothing worked. On the official page they write for AT Commands “Included in the download link” so maybe the solution is in this file ? But i can’t find the link :(.

I finaly found the Holy link here yesterday:    http://www.dx.com/fr/p/gprs-a6-serial-gprs-gsm-module-core-developemnt-board-for-arduino-433790#.V037dZGLSUk

https://drive.google.com/folderview?id=0B6uNNXJ2z4CxcWZ0N2ZVNTFnVFk&usp=sharing

We find everything even the software used in the video!

A6PinOutGsmGprsModule
A6 Gsm/GPRS Module Pinout

How use it:

  1. Connect UART_TXD to RX of the FTDI
  2. Connect UART_RXD to TX of the FTDI
  3. Connect GND to the GND of the FTDI
  4. Connect VCC5.0 To the PWR_KEY pin
  5. Connect a Micro Usb for the power(with any smartphone charger)
  6. After 4-5 second you can remove the connection between VCC5.0 and PWR_Key

You can open The arduino software, in tools select the good port(not COM1), open the serial monitor and choose 115200baud. Write “AT”, and if you see “OK” it works!

If you don’t know how exacly to do the connections, you can see how the Esp8266 works with a FTDI, it’s very close, for exemple:

esp8266-reflash-firmware

The good new is the AT commands are very close to the Commands for others Gprs/Gsm modules like SIM800/SIM900 so it’s surly possible to use the same library.

I’ve noticed the CIPMUX command can’t be used, maybe it’s CMUX ?

 

How call ?

ATD+the phone number

For exemple: ATD0785957436

Push enter and you will recieve the call.

 

How send a message ?

AT+CMGF=1

AT+CMGS=”0785957436″   (It’s the phone number)

>(write the message here)                (push Ctrl-Z and Enter, it doesn’t work in the Arduino Serial monitor but you can do it in SSCOM, the software in the Zip)

 

You can see all your previous message with:

AT+CMGR=1

for an another message change the number

AT+CMGR=2

AT+CMGR=10

AT+CMGR=12

AT+CMGR=18

AT+CMGR=24

Etc

 

And TCP/IP Connection ?

If i’m right this is the key for the MQTT connection to website etc so the most interesting part. I tried to do like in this page:

https://vsblogs.wordpress.com/2013/11/28/tcp-connection-over-gprs-using-sim900-and-at-commands/

/** First test if everything is okay **/

=> AT

<= AT /** This should come back. SIM900 default is to echo back commands you enter **/

<= OK /** This string should tell you all is well**/

=>AT+CPIN? /**This is to check if SIM is unlocked. This sample assumes unlocked SIMs**/

<= +CPIN: READY /** If your response contains this, then it means SIM is unlocked and ready**/

=>AT+CREG? /**This checks if SIM is registered or not**/

<=+CREG: 0,1 /**This string in the response indicates SIM is registered**/

=>AT+CGATT? /**Check if GPRS is attached or not**/

<=+CGATT: 1 /**A response containing this string indicates GPRS is attached**/

//if you have CGATT:0, write CGATT=1 and even if you have an error check again

=>AT+CIPSHUT /**Reset the IP session if any**/

<=SHUT OK /**This string in the response represents all IP sessions shutdown.**/

//It Never works for me, i’ve +CME ERROR:50

=>AT+CIPSTATUS /**Check if the IP stack is initialized**/

<=STATE: IP INITIAL /**This string in the response indicates IP stack is initialized**/

=>AT+CIPMUX=0 /**To keep things simple, I’m setting up a single connection mode**/

//Not really important, i think for the A6 it’s AT+CMUX=0

<=OK /**This string indicates single connection mode set successfully at SIM 900**/

//I think it’s better to write that before:AT+CGDCONT=1,”IP”,”your_apn”

=>AT+CSTT= “APN”, “UNAME”, “PWD” /**Start the task, based on the SIM card you are using, you need to know the APN, username and password for your service provider**/

<= OK /**This response indicates task started successfully**/

=> AT+CIICR /**Now bring up the wireless. Please note, the response to this might take some time**/

<=OK /**This text in response string indicates wireless is up**/

//It never works for me :/

=>AT+CIFSR /**Get the local IP address. Some people say that this step is not required, but if I do not issue this, it was not working for my case. So I made this mandatory, no harm.**/

//It never works :/

<= xxx.xxx.xxx.xxx /**If previous command is successful, you should see an IP address in the response**/

=>AT+CIPSTART= “TCP” , “http://www.vishnusharma.com”, “80” /**Start the connection, TCP, domain name, port**/

//You can also use something like AT+CIPSTART=”TCP”,”www.google.fr”,”80″

<= CONNECT OK /**This string in the response indicates TCP connection established**/

=>AT+CIPSEND /**Request initiation of data sending (the request)**/

<= > /**The response should be the string “>” to indicate, type your data to send**/

=> xxxxxx /**Just type anything for now**/

=>#026 /**Now type the sequence #026. This tells the terminal.exe to send the hex code 0x1a (which is Ctrl+Z) to indicate end of data sending**/

<= xxxxxxxxxx /**You should get some response back from the server…it would generally be a complain that the request string was not valid…but that is a different subject…you have established the connection**/

/**To close the connection**/

=>AT+CIPSHUT /**Request shutting down of the current connections**/

<=SHUT OK /**Indicates shutdown successful**/

I think i can’t connect because my operator sends a message for activate internet on the phone, i need to install something after that so i can’t do it with this kind of module :/.

Let’s me know if it works for you!

Here an another page wich can be useful if you want to use the arduino and A6:

http://arduino.stackexchange.com/questions/3993/atcstt-throws-an-error

EDIT:

I bought a new Sim card it works but it’s different than in my previus exemple(and the doc exemple).

*POWER UP*

AT+CPIN=1234           (only if you have a Sim code)

AT+CREG?

(+CREG:1,5         CREG should be like 0,1 or 0,5 so we need to change that)

AT+CREG=0

AT+CGATT?

(+CGATT:0 it’s not attach to the GPRS network, +CGATT:1 It’s attach)

AT+CGATT=1

(it can take a lot of time and write COMMAND NO RESPONSE, everytime it worked for me, just check again with AT+CGATT?)

AT+CGDCONT=1,”IP”,”free”            (free is the apn name of my operator, for your operator search in google “apn settings youroperator”)

(Maybe you will need to add AT+CSTT if you need to use your username and password for use internet with your phone:

AT+CSTT=”free”,”raymond”,”password”          Because i don’t have username and  password i write like that:

AT+CSTT=”free”,””,”” )

AT+CGACT=1,1

AT+CIPSTART=”TCP”,www.google.com”,80

(>+CDNSGIP: 1,”www.google.com”,”216.58.209.36″

OK

CONNECT OK)

AT+CIFSR                          (The IP Adresse)

>10.27.156.148

 

So for the MQTT ?

I found here a library for the Sim800 with MQTT: https://github.com/rmap/rmap/tree/master/arduino/sketchbook/libraries/sim800

The commands seems to be the same exept for few of them, so it can works surly easily but i have not tried because i can’t do TCP connection, i will try it soon with an another sim card.

 

Power Consumption

I used a usb meter so the result are not great but it can give you an interesting overview:

Idk how much it is for the Sim800L, maybe the A6 is better for that.

If i change nothing, so i can call, send message etc, the power is around 0.06w/0.13w/0.20w and when i call it can reach 2W.

It’s for 5v so it’s around 0.03A

There is a low-power mode and they say it use only <1mA, but they don’t explain how to use it.