Posted on Leave a comment

How To Use MewPro 2 and Application

We will show you basics to use MewPro 2 for controlling GoPro Hero 3+ Black camera.

The post involves no external sensors.

UPDATE 25 Feb. 2017: Hero 4s are now supported: Please refer this post.

mew2-11


Prerequisites

In order to use MewPro 2 as a GoPro controller you need the following hardwares:

GoPro Hero 3+ Black
No previous editions work with MewPro 2.
MewPro 2
MewPro 2 is ready to use without soldering.
Arduino Pro Mini Temporary FTDI Header
If you buy a MewPro 2 from our shop the header is included in the package.
Sparkfun FTDI Basic Breakout – 3.3V and USB cable
Use 3.3V version of the breakout board. Any compatible board should work.

Softwares:

MewPro 2 is shipped with optiboot as well as MewPro software (for genlock) installed. But if you like to modify/update the software you will need to prepare the following IDE, core and library. To install each software please refer their documentations.

Arduino IDE 1.6.5 or newer
Older versions of Arduino IDE might work but we don’t confirm that.
ATTiny Core
1634, x313, x4, x41, x5, x61, x7, x8 and 828 for Arduino 1.6.x
WireS library
Slave only hardware Wire library for ATtiny1634 microcontroller.

Lastly grab the MewPro application:

MewPro Application
This is an open source software (MIT license). You can modify and distribute it as you like.

Connection

On your PC launch Arduino IDE that was installed as described in the above. In Arduino IDE [File]→[Open...]→ then open MewPro.ino.

Remark: MewPro.ino contains the following files as tabs; a_Queue.ino, b_TimeAlarms.ino, c_I2C.ino, d_BacpacCommands.ino, e_Shutter.ino, f_Switch.ino,g_IRremote.ino, h_LightSensor.ino, i_PIRsensor.ino, j_VideoMotionDetect.ino, and k_Genlock.ino. If you like to see what will be happen inside of your ATtiny1634 you could read any of them.

Connect MewPro 2
connection2

to your PC w/ FTDI board and the temporary header.
conne2

Connecting FTDI please refer the pinout image below:
MewPro2

Then connect them to GoPro Hero 3+ Black.
conne1

In Arduino IDE application, select [Tools]→[Board]→[ATTiny1634 (optiboot)] and [Tools]→[Port]→[(the port where you connected the FTDI cable)]. (B.O.D. and Clock settings are “don’t care” as these values are only effective when you burn a bootloader to the microcontroller by using an ISP programmer.)

The MewPro source code is originally targeted to MewPro 1, Arduino Pro Mini, so please change the following lines in MewPro.ino from

#include <Wire.h> // *** please comment out this line if __MK20DX256__ or __MK20DX128__ or __MKL26Z64__ or __AVR_ATtiny1634__ is defined ***
#if BUFFER_LENGTH < 64
#error Please modify Arduino Wire library source code to increase the I2C buffer size
#endif
//
// Teensy 3.0 or 3.1 or LC
//#include <i2c_t3.h> // *** please comment out this line if __MK20DX256__ and __MK20DX128__ and __MKL26Z64__ are not defined ***
//
// ATtiny1634 core https://github.com/SpenceKonde/arduino-tiny-841
// WireS library is downloadable from https://github.com/orangkucing/WireS
//#include <WireS.h> // *** please comment out this line if __AVR_ATtiny1634__ is not defined ***

to

//#include <Wire.h> // *** please comment out this line if __MK20DX256__ or __MK20DX128__ or __MKL26Z64__ or __AVR_ATtiny1634__ is defined ***
//#if BUFFER_LENGTH < 64
//#error Please modify Arduino Wire library source code to increase the I2C buffer size
//#endif
//
// Teensy 3.0 or 3.1 or LC
//#include <i2c_t3.h> // *** please comment out this line if __MK20DX256__ and __MK20DX128__ and __MKL26Z64__ are not defined ***
//
// ATtiny1634 core https://github.com/SpenceKonde/arduino-tiny-841
// WireS library is downloadable from https://github.com/orangkucing/WireS
#include <WireS.h> // *** please comment out this line if __AVR_ATtiny1634__ is not defined ***

that is, to use the WireS library instead of the standard Wire library.

The code should now be compiled successfully.
Verify” the MewPro sketch and “Upload” it to MewPro 2 board.

Remark: If you are using MewPro 2 board for genlocking, please modify MewPro.ino as

boolean debug = false;
#define USE_GENLOCK

and for MewPro #0 in double dongle configuration

#define UART_RECEIVER_DISABLE

Control GoPro

Controlling details through Arduino console is the same as MewPro 1.


Resources

Posted on Leave a comment

Tips on Arduino Console w/ Double Dongles

When genlocking in dual dongle configuration a serial terminal such as Arduino IDE’s console can be attached to MewPro #0 that is on the back of GoPro #0 (see top-right of the following figure).

double-config-w-PC

Any sensors or switches can be also installed to the board and they will work for starting/stopping of all cameras.

Note: In single dongle configuration the controlling GoPro #0 has no MewPro board attached. So the method described in this post is not relevant.

Tips on Arduino Console

  1. Output displayed in console is nothing but I2C command sent to Dual Hero Bacpac.
  2. Console settings are: baud [57600], enter key emulation [Newline].
  3. Compile MewPro with #undef UART_RECEIVER_DISABLE (this is the default).
  4. The I2C command you type in is not displayed at all but don’t worry it is surely sent to GoPro #0.
  5. To start recording type “SY1”. This will start all cameras.
  6. To stop recording type “SY0”. This will stop all cameras.
  7. Power on/off all cameras is done by “@” and “PW0”, respectively.
  8. Change mode command “CM” and so on works only for GoPro #0.
    In order to distribute the changes to other cameras, type “td”.
  9. “UM” command is special. The command is not sent to Dual Hero Bacpac but sent to all cameras.
Posted on Leave a comment

MewPro Cable and MewPro 2

Two new products, MewPro Cable for genlocking GoPro and MewPro 2 for general purposes are available in our shop.

MewPro Cable

cable-1
MewPro Cable is designed for genlocking GoPro Hero 3+ Black cameras. It has a microcontroller ATtiny1634 inside the plug enclosure and controls camera into 3D capture mode as easy as just plug the connector into Herobus socket. For genlock purpose it is interchangeable to our previous product “MewPro 1 w/ SMD parts, Herobus connector and Arduino Pro Mini compatible (soldered)”.

As there were many requests from our customers that if there were a plug-and-play genlock solution, now we sell bare plugs as well as fully assembled/soldered, plug-and-play packs with cables and Dongle(s). But we should say soldering a lot of wires to small plugs and dongle is extremely weary task. So if you order a plug-and-play pack please allow us minimum of 4 days before ship.

Product page: MewPro Cable

An article, introduction to MewPro Cable is to appear soon.

MewPro 2

mew2-1
MewPro 2 uses the microcontroller ATtiny1634 and is a redesigned version of MewPro 1 that used in conjunction with Arduino Pro Mini. All signals of Herobus and the microprocessor are broken out to 2.54mm pitch pins for hand-soldering convenience. ATtiny1634 can act as complete I2C slave, hence the new board comes without I2C EEPROM that is emulated.

Product page: MewPro 2

An article, introduction to MewPro 2 is to appear soon.

Compare MewPro Specs

The following is the comparison table of our MewPro line of products: