New IP Camera OSHW board in design RFC


img2

We started recently new design with Allwinner S3 SOC.

The board have these features:

  • Allwinner S3 Cortex-A7 running at 1.2Ghz
  • AXP209 PMU with Lipo charger and step-up for UPS
  • internal 1Gb DDR3 RAM at 1333Mhz
  • 100Mb Ethernet interface with PoE option
  • NAND/eMMC/SPI Flash on socket
  • WiFi / BT module with RTL8723BS
  • Audio In and Out
  • UEXT connector
  • Lipo battery connector
  • Configuration EEPROM
  • LCD connector for LCD-OLinuXino
  • MIPI camera connector with RPi pinout
  • CSI camera connector
  • Dimensions: 60 x 50 mm

img1

S3 SOC is on bottom so heatsink could be add if overheating due to the small PCB area.

img3

We want to build intelligent camera solution which can be powered by PoE and can work with both wired and wireless Ethernet connection.

We add MIPI camera connector with RPi pinout as there are plenty of cheap 5Mpix cameras available.

We also will provide CSI camera with 5-8Mpix separately.

Why we do this board? We want to have intelligent IP camera among our tools and we put features which are necessary to fit our potential projects. This board have also potential for Voice over IP , Video over IP, Security, Home remote monitoring etc.

Initial upload on GitHub is with our schematic and components put on PCB locations, routing is ahead, so we would like to hear your opinion.

Did we forgot something?

Can we do something differently or better?

Let us know what do you think.

39 Comments (+add yours?)

  1. Eduardo Ruiz
    Oct 25, 2019 @ 19:17:27

    Infrared/termal capability?

    Reply

  2. tcmichals
    Oct 25, 2019 @ 19:30:41

    What version of Linux is supported? Does Allwinner provide all source code for video compression?

    Reply

  3. jonsmirl
    Oct 25, 2019 @ 19:34:15

    The Allwinner SDK for this chip is from 2012 and it uses Kernel 3.4. Key bits of it are closed source.

    Mainline support for this chip is good h.264 decode is working, Blueberry Pi guy has the code. CSI parallel camera is supported.

    However…. h.264 encode, ISP and MIPI are not supported. So maybe Olimex can contact bootlin about finishing those items? I have client who is working with this chip and they will contribute to help pay bootlin.

    Reply

  4. jonsmirl
    Oct 25, 2019 @ 19:39:14

    Note, Kernel 3.4 is from before Bluetooth was sorted out. BLE does not work at all. And normal BT is hard to set up.

    Reply

  5. xemilo
    Oct 25, 2019 @ 20:22:23

    Congrats Olimex for doing this!
    As the one who asked for NAND/eMMC on module four (4) months ago,
    I like to believe I have a little impact 🙂
    https://www.olimex.com/forum/index.php?topic=7167.0

    NAND/eMMC on module = upgradability & lower board price.
    SPI – footprint and price is so negligible? that all Allwinner boards should have 16MB (128Mb) soldered.

    Neat/Nifty idea: low profile Ethernet port/connecter – sturdy/solid , half height 🙂
    (as Khadas VIM3 / VIM3L)

    Thanks, good luck and have fun.

    Reply

  6. jonsmirl
    Oct 25, 2019 @ 20:27:25

    And please expose the I2S pins on the header.

    Reply

  7. NGR
    Oct 26, 2019 @ 06:35:33

    Great Move! Keep it coming. A few of thoughts:

    1. A second ethernet port please – even over USB lines would be fine – will make a great board for Industrial IoT projects
    2. Dual band Wifi (2.4 GHz + 5 GHz) – critical for uses in crowded 2.4GHz spaces
    3. Industrial grade varient

    Thank You.

    Reply

    • Another Mouse
      Oct 26, 2019 @ 13:28:53

      Why not making wifi a module like emmc? Like this board costs are lower and the rtl wifi cam be offered as a mofule and maybe for those requiring dual band an ampak module can be offered at a later point?

      Reply

      • Another Mouse
        Oct 26, 2019 @ 13:31:23

        Also forgot to mention, those modules could also be used for other boards over time and this wifi can be upgraded or removed depending on requirements

  8. Lucio De Re
    Oct 26, 2019 @ 08:44:29

    Zoom, Pan, Tilt options. I know what I’m asking and why, I’m not sure this is the right place to ask (my ignorance). Please feel free to educate me.

    Reply

    • jonsmirl
      Oct 26, 2019 @ 16:09:08

      The chip supports 4K sensors. You can implement PTZ in software. Use a fisheye lens (155-180 degrees). Then uses code to PTZ a 1080P frame around inside that 4K sensor. This can be done with the ancient Allwinner SDK, but code is missing in mainline to do it.

      If you want more, hook it to a robot arm.

      Reply

      • Lucio De Re
        Oct 27, 2019 @ 17:07:38

        Thank you, that was quite instructive and appreciated, all of it. I’m interested in such matters, but not yet in a position to experiment, which makes learning a much slower process than asking.

      • jonsmirl
        Oct 27, 2019 @ 18:05:49

        Buy a cheap (under $50) “4K sports cam” on Amazon. Almost all of them have the Allwinner V3 in them. V3 is same chip as S3. These cameras work as USB cameras when plugged into host. That is very inexpensive way to get started. As you figure more out, disassemble the camera and put a better lens on it.

  9. jonsmirl
    Oct 26, 2019 @ 19:35:21

    An alternative to the S3 is the MSTAR SSC8339D (Sigmastar is brand of MSTAR, MSTAR now owned by Mediatek). This chip is supposed to have a Linux SDK somewhere in the 4.4-4.6 range. Pricing is identical to S3.

    https://drive.google.com/open?id=0B-2Z6FDzyIwrbFBycndYQ3hhRkN2Z180VklOU0RvdVM3QUZv

    Reply

  10. JoeNinety
    Oct 27, 2019 @ 20:10:01

    This board has much potential besides being used as an IP camera. With 128Mb of RAM, RGB LCD out and a USB host it’s a small general purpose linux computer and just needs user input devices, which could be via bluetooth.

    I am interested in it to host a DOS emulator under linux to make a portable non-networked mini laptop running DOS abandonware for just getting work done without complications then transfer it off onto a USB stick. A similar idea to freewrite (getfreewrite.com) but not costing $550. Your board has lipo and a charger, but would need a separate 5v input so the existing micro usb can host a USB stick via an adapter. Maybe another micro USB for power input only?
    Not only could this host DOS abandonware but also use linux itself with basic programmes with eg. tinycore linux and also the Oberon system under linux (http://oberon.wikidot.com/oberon-linux-revival-olr)
    To use a desktop monitor an LCD flex connector to VGA R2R DAC adapter would be useful.

    Another use is as a mini gamepad. All the software has been done for the same processor (more or less) by the FunKey project (https://hackaday.io/project/164934-funkey-project-all-your-games-on-your-keychain), but they’re having problems getting the hardware built. Instead of a key chain gamepad you could have a gameboy sized gamepad with a suitable size lcd, say 3.2 inch 320×240. The FunKey project has done all the game controller input design via an i2c gpio expander (https://hackaday.io/project/164934-funkey-project-all-your-games-on-your-keychain/log/163047-schematics-buttons). The game controller could be a daughter board for the Olimex board connecting via the pin header if i2c is present. A speaker would also be needed somewhere.

    What is the target price of this board approximately? Could you provide a bare bones variant with not all of the hardware mounted eg. without wired ethernet, POE, CSI connector, eMMC connector?

    A similar idea is the PapayaPi (https://github.com/PapayaPI/PapayaPI) but it’s larger and, I assume, more expensive,

    Reply

    • jonsmirl
      Oct 27, 2019 @ 20:49:15

      The Allwinner V3S has been discontinued. The S3 is its replacement. The S3 is the same chip as the V3S, it is just in a different package — BGA. All of the software from PapayaPi should work with minor tweaks. The internal DRAM die is different on S3 (uboot tweak), and the LCD will likely be different.

      I don’t know Olimex’s pricing, but my guess it that board will be around $20 not including camera sensors.

      Reply

  11. tcmichals
    Oct 28, 2019 @ 17:02:22

    Looks like Bootlin will be starting some encoding work: https://bootlin.com/

    Reply

  12. Trackback: Olimex open source hardware IP camera – Firmware Security
  13. ChasX
    Oct 30, 2019 @ 16:21:26

    It would be terrific if there would be a SOM version of this in small size with 2.54 headers and castellations (like the ESP8266 board from Olimex) with power management controller and SD card on the board (and maybe the wifi/bt board as well) so it can be used for all kind of interesting projects of mine that need an OS instead of bare ESP8266!

    Reply

  14. Trackback: Olimex OSHW Allwinner S3 IP Camera Board in the Works - Feedback & Suggestions Welcomed
  15. e97
    Nov 01, 2019 @ 04:45:22

    1) Is 100M a limit of the chip? Would like 1000M Ethernet – to support 8MP Pi camera v2 and offloading of raw footage to a NVR that can encode h265

    2) A 1000M gigabit PoE adapter with 5Vdc micro USB is ~USD$4, no need to complicate the board with built-in PoE unless its cheaper and doesnt make the board larger.

    3) Built in mics would be nice, USB multi directional mics are cheap though

    Reply

  16. Thomas
    Nov 01, 2019 @ 20:58:13

    Nice….when is it available?

    Reply

  17. et9000
    Nov 02, 2019 @ 00:25:45

    This looks great! I am very interested to find a solution which has the following: 2 camera inputs (preferably parallel or 1 parallel and 1 mipi), hardware video encoding, LCD controller, Wifi. Could this be it?

    Reply

  18. Luc Verhaegen
    Nov 03, 2019 @ 13:35:55

    et9000: you can have this with an a20 device, like the lime2.

    Reply

    • et9000
      Nov 04, 2019 @ 19:51:29

      Thanks for the pointer Luc, will check that out. I am still interested in the V3/S3 as I believe that the power consumption may be lower than the SoCs with dual or quad cores?

      Reply

    • et9000
      Nov 12, 2019 @ 18:50:40

      (the Lime2 does not have camera inputs btw)

      Reply

  19. et9000
    Nov 06, 2019 @ 00:57:39

    Thanks for the pointers guys.
    One more question about the S3 chip. The product brief (for the V3, on AW website) says that it supports two channel encoding, for front and rear cameras. But how is that possible, there is only one ISP, can you connect more than one camera or video source?

    Reply

    • jonsmirl
      Nov 06, 2019 @ 01:18:16

      A simplified explanation… A frame comes in from sensor to DRAM. You tell ISP to do something to it, output to DRAM. That output in DRAM is processed by h.264 which ends up again in DRAM. Note that each stage gets stored in DRAM. So if you have two incoming sources for video you have two frames in DRAM. You can then process them sequential using the ISP. The same can be done with the h.264 hardware. In fact the frame don’t even have to originate from an image sensor, you could compute them with CGI code.

      The ISP is not tied to a specific sensor, it just works on a frame in DRAM. Why the statement about two channels? Speed. To do two channels at 30FPS, the ISP needs to be able to run at 60FPS. The answer to this is complicated on S3, because if one channel is 4KP20 then there is no extra time available to process a second channel.

      Note the A20 encode hardware is only 1080P 30FPS and the S3 hardware is 1080P ~240FPS. So S3 has much more ability to handle multiple streams. This is a difference in the V3 family – encode speed varies from 1080P 60FPS upto 240 FPS by clocking the encoder faster. Different packages deal differently with the heat.

      The V5 is different in this respect, it has two ISP units and two h.264 units and two h.265 units. So you can do a whole lot of stuff in parallel (like dual 4KP30) If you want high performance dual cameras, I recommend the V5.

      Reply

      • et9000
        Nov 07, 2019 @ 21:37:50

        Thank you Jon, that explanation really helped. In my case both the cameras are quite low resolution so I will probably still consider the V3/S3 part.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: