Difference between revisions of "E-Puck"

From GCtronic wiki
Jump to: navigation, search
(I2C communication)
 
(5 intermediate revisions by the same user not shown)
Line 38: Line 38:
 
===Camera===
 
===Camera===
 
The orientation of the camera is different in each hardware revision and also in the case of HWRev 1.1 the same camera model can be oriented differently, here is an image that shows the different cameras and related orientation:<br/>
 
The orientation of the camera is different in each hardware revision and also in the case of HWRev 1.1 the same camera model can be oriented differently, here is an image that shows the different cameras and related orientation:<br/>
<span class="plainlinks">[http://www.gctronic.com/doc/images/epuck-cameras.jpg <img width=300 src="http://www.gctronic.com/doc/images/epuck-cameras-small.jpg">]</span><br/>
+
<span class="plainlinks">[https://www.gctronic.com/doc/images/epuck-cameras.jpg <img width=300 src="https://www.gctronic.com/doc/images/epuck-cameras-small.jpg">]</span><br/>
 
The e-puck library configures the camera in order to get the right orientation for all situations except when it is rotated by 90 degrees.
 
The e-puck library configures the camera in order to get the right orientation for all situations except when it is rotated by 90 degrees.
 
In order to let the user distinguish the current camera mounted on the robot and in case it is rotated by 90 degrees apply the related processing, the EEPROM is modified based on the camera model mounted on the robot and its orientation. This modification follow these rules: the modification apply only to the last word of the EEPROM, at address 0x7FFFFE; bits 14 and 15 are used to indicate the rotation (11=no rotation, 01=90 degrees, 10=-90 degrees, 00=180 degrees), bits 12 and 13 are used to indicate the camera model (11=PO3030, 10=PO6030, 01=PO8030). The possible values for the EEPROM are thus:
 
In order to let the user distinguish the current camera mounted on the robot and in case it is rotated by 90 degrees apply the related processing, the EEPROM is modified based on the camera model mounted on the robot and its orientation. This modification follow these rules: the modification apply only to the last word of the EEPROM, at address 0x7FFFFE; bits 14 and 15 are used to indicate the rotation (11=no rotation, 01=90 degrees, 10=-90 degrees, 00=180 degrees), bits 12 and 13 are used to indicate the camera model (11=PO3030, 10=PO6030, 01=PO8030). The possible values for the EEPROM are thus:
Line 60: Line 60:
 
</pre>
 
</pre>
  
This project ([http://projects.gctronic.com/E-Puck/writeEEPROMsrc.zip src]) is an example on how to write the last word of the EEPROM.
+
This project ([https://projects.gctronic.com/E-Puck/writeEEPROMsrc.zip src]) is an example on how to write the last word of the EEPROM.
  
 
Beware that not all robots are shipped with the EEPROM programmed as specified previously. It is up to the user to check this modification by simply using the advanced sercom demo (selector in position 3) and requesting the version (command <code>v</code>); the hardware version returned by the command corresponds to the value of the last word of the EEPROM.
 
Beware that not all robots are shipped with the EEPROM programmed as specified previously. It is up to the user to check this modification by simply using the advanced sercom demo (selector in position 3) and requesting the version (command <code>v</code>); the hardware version returned by the command corresponds to the value of the last word of the EEPROM.
Line 66: Line 66:
 
===Accelerometer===
 
===Accelerometer===
 
The actual accelerometer mounted on the robot is automatically detected by the library at startup. The values ranges of the digital accelerometer are different from the analog accelerometer, but the library scale them to be similar in order to be compatible with the existing demos. The orientation of the accelerometer is shown below, the x axis points left, the y axis points forward and z points upward:<br/>
 
The actual accelerometer mounted on the robot is automatically detected by the library at startup. The values ranges of the digital accelerometer are different from the analog accelerometer, but the library scale them to be similar in order to be compatible with the existing demos. The orientation of the accelerometer is shown below, the x axis points left, the y axis points forward and z points upward:<br/>
<span class="plainlinks">[http://www.gctronic.com/doc/images/epuck-acc-directions.png <img width=150 src="http://www.gctronic.com/doc/images/epuck-acc-directions.png">]</span><br/>
+
<span class="plainlinks">[https://www.gctronic.com/doc/images/epuck-acc-directions.png <img width=150 src="https://www.gctronic.com/doc/images/epuck-acc-directions.png">]</span><br/>
For users playing with e-puck HWRev1.3 and gumstix extension refer to section [http://www.gctronic.com/doc/index.php/Overo_Extension#Accelerometer_and_gyroscope_.28e-puck_HWRev_1.3.29 Accelerometer and gyroscope (e-puck_HWRev_1.3)].
+
For users playing with e-puck HWRev1.3 and gumstix extension refer to section [https://www.gctronic.com/doc/index.php/Overo_Extension#Accelerometer_and_gyroscope_.28e-puck_HWRev_1.3.29 Accelerometer and gyroscope (e-puck_HWRev_1.3)].
  
 
===Microphone===
 
===Microphone===
Line 74: Line 74:
 
===Gyroscope===
 
===Gyroscope===
 
The gyroscope is available from HWRev 1.3. The orientation of the gyro is shown below, the x axis points forward, the y axis points left and the z axis points upward:<br/>
 
The gyroscope is available from HWRev 1.3. The orientation of the gyro is shown below, the x axis points forward, the y axis points left and the z axis points upward:<br/>
<span class="plainlinks">[http://www.gctronic.com/doc/images/epuck-gyro-directions.png <img width=150 src="http://www.gctronic.com/doc/images/epuck-gyro-directions.png">]</span><br/>
+
<span class="plainlinks">[https://www.gctronic.com/doc/images/epuck-gyro-directions.png <img width=150 src="https://www.gctronic.com/doc/images/epuck-gyro-directions.png">]</span><br/>
For users playing with e-puck HWRev1.3 and gumstix extension refer to section [http://www.gctronic.com/doc/index.php/Overo_Extension#Accelerometer_and_gyroscope_.28e-puck_HWRev_1.3.29 Accelerometer and gyroscope (e-puck_HWRev_1.3)].
+
For users playing with e-puck HWRev1.3 and gumstix extension refer to section [https://www.gctronic.com/doc/index.php/Overo_Extension#Accelerometer_and_gyroscope_.28e-puck_HWRev_1.3.29 Accelerometer and gyroscope (e-puck_HWRev_1.3)].
  
 
==Specifications==
 
==Specifications==
Line 81: Line 81:
 
<br/>
 
<br/>
  
* '''Microcontroller''': [http://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en024766 Microchip dsPIC30F6014A]
+
* '''Microcontroller''': [https://www.microchip.com/wwwproducts/Devices.aspx?dDocName=en024766 Microchip dsPIC30F6014A]
** [http://ww1.microchip.com/downloads/en/DeviceDoc/70143D.pdf dsPIC30F6011A/6012A/6013A/6014A Data Sheet]
+
** [https://ww1.microchip.com/downloads/en/DeviceDoc/70143D.pdf dsPIC30F6011A/6012A/6013A/6014A Data Sheet]
** [http://ww1.microchip.com/downloads/en/DeviceDoc/70046E.pdf dsPIC30F Family Reference Manual]
+
** [https://ww1.microchip.com/downloads/en/DeviceDoc/70046E.pdf dsPIC30F Family Reference Manual]
** [http://ww1.microchip.com/downloads/en/DeviceDoc/70157C.pdf dsPIC30F/33F Programmer's Reference Manual]
+
** [https://ww1.microchip.com/downloads/en/DeviceDoc/70157C.pdf dsPIC30F/33F Programmer's Reference Manual]
  
* '''Camera''': [http://www.e-puck.org/index.php?option=com_content&view=article&id=5&Itemid=14 details]
+
* '''Camera''': [https://www.e-puck.org/index.php?option=com_content&view=article&id=5&Itemid=14 details]
** '''HWRev 1.1''': PixelPlus PO3030K CMOS image sensor, [http://projects.gctronic.com/E-Puck/docs/Camera/PO3030K.pdf Data Sheet], no IR cut filter
+
** '''HWRev 1.1''': PixelPlus PO3030K CMOS image sensor, [https://projects.gctronic.com/E-Puck/docs/Camera/PO3030K.pdf Data Sheet], no IR cut filter
** '''HWRev 1.2''': PixelPlus PO6030K CMOS image sensor, [http://projects.gctronic.com/E-Puck/docs/Camera/PO6030K.pdf Data Sheet], no IR cut filter
+
** '''HWRev 1.2''': PixelPlus PO6030K CMOS image sensor, [https://projects.gctronic.com/E-Puck/docs/Camera/PO6030K.pdf Data Sheet], no IR cut filter
** '''HWRev 1.3''': PixelPlus PO8030D CMOS image sensor, [http://projects.gctronic.com/E-Puck/docs/Camera/PO8030D.pdf Data Sheet], no IR cut filter
+
** '''HWRev 1.3''': PixelPlus PO8030D CMOS image sensor, [https://projects.gctronic.com/E-Puck/docs/Camera/PO8030D.pdf Data Sheet], no IR cut filter
  
 
* '''Bluetooth''':
 
* '''Bluetooth''':
** '''HWRev 1.1''': National Semiconductor LMX9820A Bluetooth Serial Port Module, [http://projects.gctronic.com/E-Puck/docs/BT/lmx9820.pdf Data Sheet], [http://projects.gctronic.com/E-Puck/docs/BT/lmx9820-sw-user-guide.pdf Software User Guide]
+
** '''HWRev 1.1''': National Semiconductor LMX9820A Bluetooth Serial Port Module, [https://projects.gctronic.com/E-Puck/docs/BT/lmx9820.pdf Data Sheet], [https://projects.gctronic.com/E-Puck/docs/BT/lmx9820-sw-user-guide.pdf Software User Guide]
** '''HWRev 1.2 and 1.3''': [http://www.ti.com/product/lmx9838 Texas Instruments LMX9838 Bluetooth Serial Port Module], [http://projects.gctronic.com/E-Puck/docs/BT/lmx9838.pdf Data Sheet], [http://projects.gctronic.com/E-Puck/docs/BT/lmx9838-sw-user-guide.pdf Software User Guide]
+
** '''HWRev 1.2 and 1.3''': [https://www.ti.com/product/lmx9838 Texas Instruments LMX9838 Bluetooth Serial Port Module], [https://projects.gctronic.com/E-Puck/docs/BT/lmx9838.pdf Data Sheet], [https://projects.gctronic.com/E-Puck/docs/BT/lmx9838-sw-user-guide.pdf Software User Guide]
  
* '''Microphone''': [http://www.e-puck.org/index.php?option=com_content&view=article&id=19&Itemid=11 details]
+
* '''Microphone''': [https://www.e-puck.org/index.php?option=com_content&view=article&id=19&Itemid=11 details]
** '''HWRev 1.1''': [http://projects.gctronic.com/E-Puck/docs/Audio/SP0103NC3.pdf Knowles Acoustics SiSonic SP0103NC3-3 microphone with integrated amplifier], [http://www.silabs.com/products/voice/codec/Pages/default.aspx Silicon Labs Si3000 Voice Codec]  
+
** '''HWRev 1.1''': [https://projects.gctronic.com/E-Puck/docs/Audio/SP0103NC3.pdf Knowles Acoustics SiSonic SP0103NC3-3 microphone with integrated amplifier], [https://www.silabs.com/products/voice/codec/Pages/default.aspx Silicon Labs Si3000 Voice Codec]  
** '''HWRev 1.2''': [http://projects.gctronic.com/E-Puck/docs/Audio/SPM0208HD5.pdf Knowles Acoustics SiSonic amplified mini microphone SPM0208HD5]
+
** '''HWRev 1.2''': [https://projects.gctronic.com/E-Puck/docs/Audio/SPM0208HD5.pdf Knowles Acoustics SiSonic amplified mini microphone SPM0208HD5]
** '''HWRev 1.3''': [http://projects.gctronic.com/E-Puck/docs/Audio/SPU0414HR5H-SB.pdf Knowles Acoustics SiSonic amplified mini microphone SPU0414HR5H-SB]
+
** '''HWRev 1.3''': [https://projects.gctronic.com/E-Puck/docs/Audio/SPU0414HR5H-SB.pdf Knowles Acoustics SiSonic amplified mini microphone SPU0414HR5H-SB]
  
* '''Optical sensors''': [http://www.e-puck.org/index.php?option=com_content&view=article&id=22&Itemid=13 details]
+
* '''Optical sensors''': [https://www.e-puck.org/index.php?option=com_content&view=article&id=22&Itemid=13 details]
** [http://www.vishay.com/optical-sensors/list/product-83752/ Vishay Semiconductors Reflective Optical Sensor], [http://www.vishay.com/docs/83752/tcrt1000.pdf Data Sheet]
+
** [https://www.vishay.com/optical-sensors/list/product-83752/ Vishay Semiconductors Reflective Optical Sensor], [https://www.vishay.com/docs/83752/tcrt1000.pdf Data Sheet]
  
* '''Accelerometer''': [http://www.e-puck.org/index.php?option=com_content&view=article&id=21&Itemid=12 details]
+
* '''Accelerometer''': [https://www.e-puck.org/index.php?option=com_content&view=article&id=21&Itemid=12 details]
** '''HWRev 1.1 and 1.2''': [http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MMA7260QT&amp;amp;nodeId=01126911184209 Freescale Semiconductor MMA7260Q three axis accelerometer], [http://projects.gctronic.com/E-Puck/docs/Accelerometer/MMA7260Q-Rev1.pdf Data Sheet]
+
** '''HWRev 1.1 and 1.2''': [https://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=MMA7260QT&amp;amp;nodeId=01126911184209 Freescale Semiconductor MMA7260Q three axis accelerometer], [https://projects.gctronic.com/E-Puck/docs/Accelerometer/MMA7260Q-Rev1.pdf Data Sheet]
** '''HWRev 1.3''': [http://www.st.com/web/catalog/sense_power/FM89/SC1448/PF253882 STMicroelectronics LSM330 3D accelerometer and 3D gyroscope], [http://projects.gctronic.com/E-Puck/docs/acc+gyro/LSM330.pdf Data Sheet]
+
** '''HWRev 1.3''': [https://www.st.com/web/catalog/sense_power/FM89/SC1448/PF253882 STMicroelectronics LSM330 3D accelerometer and 3D gyroscope], [https://projects.gctronic.com/E-Puck/docs/acc+gyro/LSM330.pdf Data Sheet]
  
* '''Motors''': [http://www.e-puck.org/index.php?option=com_content&view=article&id=7&Itemid=9 details]
+
* '''Motors''': [https://www.e-puck.org/index.php?option=com_content&view=article&id=7&Itemid=9 details]
  
 
==Serial communication==
 
==Serial communication==
 
The communication between the robot and the computer can be also handled with a serial cable; the serial connector position on the robot, the related cable and the electric schema are shown on the following figures. <br/>
 
The communication between the robot and the computer can be also handled with a serial cable; the serial connector position on the robot, the related cable and the electric schema are shown on the following figures. <br/>
<span class="plainlinks">[http://www.gctronic.com/doc/images/E-puck-serial-connector.jpg <img width=200 src="http://www.gctronic.com/doc/images/E-puck-serial-connector.jpg">]</span>
+
<span class="plainlinks">[https://www.gctronic.com/doc/images/E-puck-serial-connector.jpg <img width=200 src="https://www.gctronic.com/doc/images/E-puck-serial-connector.jpg">]</span>
<span class="plainlinks">[http://www.gctronic.com/img/shop/serial-cable-shop.jpg <img width=400 src="http://www.gctronic.com/img/shop/serial-cable-shop.jpg">]</span>
+
<span class="plainlinks">[https://www.gctronic.com/img2/shop/serial-cable-shop.jpg <img width=400 src="https://www.gctronic.com/img2/shop/serial-cable-shop.jpg">]</span>
<span class="plainlinks">[http://www.gctronic.com/doc/images/RS232_connector_EJumper.gif <img width=200 src="http://www.gctronic.com/doc/images/RS232_connector_EJumper.gif">]</span>  <br/>
+
<span class="plainlinks">[https://www.gctronic.com/doc/images/RS232_connector_EJumper.gif <img width=200 src="https://www.gctronic.com/doc/images/RS232_connector_EJumper.gif">]</span>  <br/>
 
In order to communicate with the robot through a serial line, the robot firmware must be implemented using the functions of the UART2 instead the one of UART1 (BT). All the functions implemented for the UART1 are also available for the UART2, so it's only a matter of changing the function call names.
 
In order to communicate with the robot through a serial line, the robot firmware must be implemented using the functions of the UART2 instead the one of UART1 (BT). All the functions implemented for the UART1 are also available for the UART2, so it's only a matter of changing the function call names.
Anyway the [http://www.gctronic.com/doc/index.php/E-Puck#Standard_firmware standard firmware] contains already a mode that communicates over serial line selecting position 11; in this mode you can configure the BT.
+
Anyway the [https://www.gctronic.com/doc/index.php/E-Puck#Standard_firmware standard firmware] contains already a mode that communicates over serial line selecting position 11; in this mode you can configure the BT.
  
 
==I2C communication==
 
==I2C communication==
Line 131: Line 131:
 
The battery can be inserted only in one way: the side where the plastic protection do not cover completely the battery "top" must be towards the ground.<br/>
 
The battery can be inserted only in one way: the side where the plastic protection do not cover completely the battery "top" must be towards the ground.<br/>
 
<font style="color:red"> '''DO NOT REMOVE THE BLACK PLASTIC PROTECTION!''' </font><br/>
 
<font style="color:red"> '''DO NOT REMOVE THE BLACK PLASTIC PROTECTION!''' </font><br/>
<span class="plainlinks">[http://www.gctronic.com/doc/images/battery-epuck-2016.jpg <img width=250 src="http://www.gctronic.com/doc/images/battery-epuck-2016-small.jpg">]</span>
+
<span class="plainlinks">[https://www.gctronic.com/doc/images/battery-epuck-2016.jpg <img width=250 src="https://www.gctronic.com/doc/images/battery-epuck-2016-small.jpg">]</span>
<span class="plainlinks">[http://www.gctronic.com/doc/images/battery-epuck-2016-2.jpg <img width=200 src="http://www.gctronic.com/doc/images/battery-epuck-2016-2-small.jpg">]</span>
+
<span class="plainlinks">[https://www.gctronic.com/doc/images/battery-epuck-2016-2.jpg <img width=200 src="https://www.gctronic.com/doc/images/battery-epuck-2016-2-small.jpg">]</span>
<span class="plainlinks">[http://www.gctronic.com/doc/images/battery-epuck-2016-3.jpg <img width=200 src="http://www.gctronic.com/doc/images/battery-epuck-2016-3-small.jpg">]</span><br/>
+
<span class="plainlinks">[https://www.gctronic.com/doc/images/battery-epuck-2016-3.jpg <img width=200 src="https://www.gctronic.com/doc/images/battery-epuck-2016-3-small.jpg">]</span><br/>
 
This battery doesn't fit perfectly in older chargers, but it can be inserted anyway in the charger in order to make a good contact and charge it; when the contact is ok you will see the led turned on.<br/>
 
This battery doesn't fit perfectly in older chargers, but it can be inserted anyway in the charger in order to make a good contact and charge it; when the contact is ok you will see the led turned on.<br/>
<span class="plainlinks">[http://www.gctronic.com/doc/images/batt2016-charger-side.jpg <img width=250 src="http://www.gctronic.com/doc/images/batt2016-charger-side-small.jpg">]</span>
+
<span class="plainlinks">[https://www.gctronic.com/doc/images/batt2016-charger-side.jpg <img width=250 src="https://www.gctronic.com/doc/images/batt2016-charger-side-small.jpg">]</span>
<span class="plainlinks">[http://www.gctronic.com/doc/images/batt2016-charger-top.jpg <img width=200 src="http://www.gctronic.com/doc/images/batt2016-charger-top-small.jpg">]</span>
+
<span class="plainlinks">[https://www.gctronic.com/doc/images/batt2016-charger-top.jpg <img width=200 src="https://www.gctronic.com/doc/images/batt2016-charger-top-small.jpg">]</span>
  
 
===Battery from 2013 to 2016===
 
===Battery from 2013 to 2016===
Line 142: Line 142:
 
The battery is covered with a plastic protection in order to avoid any possible short circuit during inserting/removing of the battery. <br/>
 
The battery is covered with a plastic protection in order to avoid any possible short circuit during inserting/removing of the battery. <br/>
 
<font style="color:red"> '''DO NOT REMOVE THE PLASTIC PROTECTION!''' </font><br/>
 
<font style="color:red"> '''DO NOT REMOVE THE PLASTIC PROTECTION!''' </font><br/>
<span class="plainlinks">[http://www.gctronic.com/doc/images/battery-epuck-new1.jpg <img width=250 src="http://www.gctronic.com/doc/images/battery-epuck-new1_small.jpg">]</span>
+
<span class="plainlinks">[https://www.gctronic.com/doc/images/battery-epuck-new1.jpg <img width=250 src="https://www.gctronic.com/doc/images/battery-epuck-new1_small.jpg">]</span>
<span class="plainlinks">[http://www.gctronic.com/doc/images/battery-epuck-new2.jpg <img width=275 src="http://www.gctronic.com/doc/images/battery-epuck-new2_small.jpg">]</span>
+
<span class="plainlinks">[https://www.gctronic.com/doc/images/battery-epuck-new2.jpg <img width=275 src="https://www.gctronic.com/doc/images/battery-epuck-new2_small.jpg">]</span>
  
 
===Battery up to 2012===
 
===Battery up to 2012===
 
The robots delivered in 2012 had a small difference regarding the battery; the type of battery is always the same but the mechanics of the positive pin is slightly different from one version to the other. The version with the black plastic cover comes out a bit more then the version with the brown cardboard cover. <br/>
 
The robots delivered in 2012 had a small difference regarding the battery; the type of battery is always the same but the mechanics of the positive pin is slightly different from one version to the other. The version with the black plastic cover comes out a bit more then the version with the brown cardboard cover. <br/>
<span class="plainlinks">[http://www.gctronic.com/doc/images/Batt-covers.jpg <img width=300 src="http://www.gctronic.com/doc/images/Batt-covers.jpg">]</span>
+
<span class="plainlinks">[https://www.gctronic.com/doc/images/Batt-covers.jpg <img width=300 src="https://www.gctronic.com/doc/images/Batt-covers.jpg">]</span>
  
The e-puck contact has been slightly modified to have a better contact with both versions as shown in the following figure; see the [http://projects.gctronic.com/E-Puck/docs/contact-modification.pdf Contact-modification.pdf] document to get more information on how to apply this modification.<br/>
+
The e-puck contact has been slightly modified to have a better contact with both versions as shown in the following figure; see the [https://projects.gctronic.com/E-Puck/docs/contact-modification.pdf Contact-modification.pdf] document to get more information on how to apply this modification.<br/>
<span class="plainlinks">[http://www.gctronic.com/doc/images/Battery-contact.jpg <img width=300 src="http://www.gctronic.com/doc/images/Battery-contact.jpg">]</span>
+
<span class="plainlinks">[https://www.gctronic.com/doc/images/Battery-contact.jpg <img width=300 src="https://www.gctronic.com/doc/images/Battery-contact.jpg">]</span>
  
 
The charger makes contact with both versions, as illustrated below. <br/>
 
The charger makes contact with both versions, as illustrated below. <br/>
<span class="plainlinks">[http://www.gctronic.com/doc/images/Batt-charger.jpg <img width=300 src="http://www.gctronic.com/doc/images/Batt-charger.jpg">]</span>
+
<span class="plainlinks">[https://www.gctronic.com/doc/images/Batt-charger.jpg <img width=300 src="https://www.gctronic.com/doc/images/Batt-charger.jpg">]</span>
  
 
The positive pin has the tendency to get a bit oxidated and might need to be scratched a bit for a perfect connection.
 
The positive pin has the tendency to get a bit oxidated and might need to be scratched a bit for a perfect connection.
Line 159: Line 159:
  
 
===Charger circuit diagram===
 
===Charger circuit diagram===
The circuit diagram of the e-puck charger is available on the following link [http://www.gctronic.com/doc/images/charger-circuit-diagram.png charger-circuit-diagram.png].
+
The circuit diagram of the e-puck charger is available on the following link [https://www.gctronic.com/doc/images/charger-circuit-diagram.png charger-circuit-diagram.png].
  
 
=Software=
 
=Software=
Line 167: Line 167:
 
2) turn on the robot and pair it with the computer:
 
2) turn on the robot and pair it with the computer:
 
* if you're running Linux use the system bluetooth manager to pair the robot with the computer and then issue the command ''sudo rfcomm bind /dev/rfcomm0 10:00:E8:C5:61:C9'', where ''10:00:E8:C5:61:C9'' is the BT mac address of the robot
 
* if you're running Linux use the system bluetooth manager to pair the robot with the computer and then issue the command ''sudo rfcomm bind /dev/rfcomm0 10:00:E8:C5:61:C9'', where ''10:00:E8:C5:61:C9'' is the BT mac address of the robot
* if you're running Windows there is a detailed guide from the [http://www.e-puck.org/index.php?option=com_phocadownload&view=category&id=5:tutorials&Itemid=38 e-puck.org tutorials], here is a direct link to the guide [http://projects.gctronic.com/E-Puck/BTboot-epuck-gettingstarted.pdf BTboot epuck gettingstarted] (refer to chapter 2.3, page 6)
+
* if you're running Windows there is a detailed guide from the [https://www.e-puck.org/index.php?option=com_phocadownload&view=category&id=5:tutorials&Itemid=38 e-puck.org tutorials], here is a direct link to the guide [https://projects.gctronic.com/E-Puck/BTboot-epuck-gettingstarted.pdf BTboot epuck gettingstarted] (refer to chapter 2.3, page 6)
 
3) execute a terminal program (e.g. minicom for Linux or teraterm for Windows) and configure the connection with 115200-8N1. The serial device path should be typically something like "/dev/rfcomm0". Make sure that the flow control parameter of minicom called "Hardware" is set to "No"<br/>
 
3) execute a terminal program (e.g. minicom for Linux or teraterm for Windows) and configure the connection with 115200-8N1. The serial device path should be typically something like "/dev/rfcomm0". Make sure that the flow control parameter of minicom called "Hardware" is set to "No"<br/>
 
4) type ''h+ENTER'' and you'll be prompted with a menu that contains all the commands you can issue to the robot, for instance you can retrieve the sensors values or turn on the leds
 
4) type ''h+ENTER'' and you'll be prompted with a menu that contains all the commands you can issue to the robot, for instance you can retrieve the sensors values or turn on the leds
  
 
==Library==
 
==Library==
The embedded software running on the e-puck is continuously extended and managed in the following git repo [https://github.com/gctronic/e-puck-library https://github.com/gctronic/e-puck-library]. The repo comprises a complete library to work with all the sensors mounted on the e-puck and is the basis for many demos. You can download the library documentation form the following link [http://projects.gctronic.com/E-Puck/e-puck-library.pdf e-puck-library.pdf].<br/>
+
The embedded software running on the e-puck is continuously extended and managed in the following git repo [https://github.com/gctronic/e-puck-library https://github.com/gctronic/e-puck-library]. The repo comprises a complete library to work with all the sensors mounted on the e-puck and is the basis for many demos. You can download the library documentation form the following link [https://projects.gctronic.com/E-Puck/e-puck-library.pdf e-puck-library.pdf].<br/>
 
The content of the repo is the following:
 
The content of the repo is the following:
 
* library: this is the low level library of the e-puck
 
* library: this is the low level library of the e-puck
 
* program:
 
* program:
 
** "Bluetooth mirror": interact with the Bluetooth chip through serial cable
 
** "Bluetooth mirror": interact with the Bluetooth chip through serial cable
** "BTCom": basically it is the "asercom" implementation, refer to [http://www.gctronic.com/doc/index.php/Advanced_sercom_protocol Advanced sercom protocol]
+
** "BTCom": basically it is the "asercom" implementation, refer to [https://www.gctronic.com/doc/index.php/Advanced_sercom_protocol Advanced sercom protocol]
 
** EPFL demo project: some nice demos bundled in one project, such as sound source location, obstacle avoidance and color blob detection (red and green). Some of these demos are included in the GCtronic standard firmware.
 
** EPFL demo project: some nice demos bundled in one project, such as sound source location, obstacle avoidance and color blob detection (red and green). Some of these demos are included in the GCtronic standard firmware.
** GCtronic standard firmware project, refer to section [http://www.gctronic.com/doc/index.php/E-Puck#Standard_firmware Standard firmware]
+
** GCtronic standard firmware project, refer to section [https://www.gctronic.com/doc/index.php/E-Puck#Standard_firmware Standard firmware]
 
* tool:
 
* tool:
 
** computer-side and e-puck side bootloader
 
** computer-side and e-puck side bootloader
Line 186: Line 186:
  
 
In order to download a snapshot of the repo, go to the [https://github.com/gctronic/e-puck-library https://github.com/gctronic/e-puck-library] page and then click on the green botton named <code>Clone or download</code> and select <code>Download ZIP</code> as shonw in the following figure.
 
In order to download a snapshot of the repo, go to the [https://github.com/gctronic/e-puck-library https://github.com/gctronic/e-puck-library] page and then click on the green botton named <code>Clone or download</code> and select <code>Download ZIP</code> as shonw in the following figure.
<span class="plainlinks">[http://www.gctronic.com/doc/images/e-puck-snapshot.png <img width=500 src="http://www.gctronic.com/doc/images/e-puck-snapshot.png">]</span>
+
<span class="plainlinks">[https://www.gctronic.com/doc/images/e-puck-snapshot.png <img width=500 src="https://www.gctronic.com/doc/images/e-puck-snapshot.png">]</span>
  
 
===Structure===
 
===Structure===
Line 226: Line 226:
 
* Selector position 15: Simple dust cleaner behaviour.
 
* Selector position 15: Simple dust cleaner behaviour.
 
<!--* Other selector position: Avoid the obstacles. Look at runbreitenberg_adv.h for more information.-->
 
<!--* Other selector position: Avoid the obstacles. Look at runbreitenberg_adv.h for more information.-->
The pre-built fimrware is available from [http://projects.gctronic.com/E-Puck/DemoGCtronic-complete/DemoGCtronic-complete-4bba145.hex DemoGCtronic-complete.hex].<br/>
+
The pre-built fimrware is available from [https://projects.gctronic.com/E-Puck/DemoGCtronic-complete/DemoGCtronic-complete-4bba145.hex DemoGCtronic-complete.hex].<br/>
You can have a look at the source code from the following link [https://github.com/gctronic/e-puck-library/tree/master/program/DemoGCtronic-complete https://github.com/gctronic/e-puck-library/tree/master/program/DemoGCtronic-complete]; beware that the project is actually included in the e-puck library repository, refer to section [http://www.gctronic.com/doc/index.php?title=E-Puck#Library Library] to download it.
+
You can have a look at the source code from the following link [https://github.com/gctronic/e-puck-library/tree/master/program/DemoGCtronic-complete https://github.com/gctronic/e-puck-library/tree/master/program/DemoGCtronic-complete]; beware that the project is actually included in the e-puck library repository, refer to section [https://www.gctronic.com/doc/index.php?title=E-Puck#Library Library] to download it.
  
 
===Project building===
 
===Project building===
In order to build the project you need to install the MPLAB X IDE and related compiler, refer to section [http://www.gctronic.com/doc/index.php?title=E-Puck#MPLAB_X Programming: MPLAB X].<br/>
+
In order to build the project you need to install the MPLAB X IDE and related compiler, refer to section [https://www.gctronic.com/doc/index.php?title=E-Puck#MPLAB_X Programming: MPLAB X].<br/>
The standard firmware project is based on the e-puck library (refer to [http://www.gctronic.com/doc/index.php?title=E-Puck#Library Library] section).<br/>
+
The standard firmware project is based on the e-puck library (refer to [https://www.gctronic.com/doc/index.php?title=E-Puck#Library Library] section).<br/>
 
To build the project follow these steps:<br/>
 
To build the project follow these steps:<br/>
1) download and extract the e-puck library repository (refer to section [http://www.gctronic.com/doc/index.php?title=E-Puck#Library Library]), let say in the folder <code>e-puck-library</code>; you should have the following situation:  
+
1) download and extract the e-puck library repository (refer to section [https://www.gctronic.com/doc/index.php?title=E-Puck#Library Library]), let say in the folder <code>e-puck-library</code>; you should have the following situation:  
 
* e-puck-library
 
* e-puck-library
 
** library
 
** library
Line 242: Line 242:
 
2) Open MPLAB X, then click <code>File=>Open Project</code> and select the project file <code>demoGCtronic.X</code> you can find in <code>e-puck-library\program\DemoGCtronic-complete</code>. If you're asked to upgrade the project to the current IDE version, click <code>yes</code> to confirm.<br/>
 
2) Open MPLAB X, then click <code>File=>Open Project</code> and select the project file <code>demoGCtronic.X</code> you can find in <code>e-puck-library\program\DemoGCtronic-complete</code>. If you're asked to upgrade the project to the current IDE version, click <code>yes</code> to confirm.<br/>
 
3) Right click on the project name (on the left panel) and select <code>Properties</code> as shown in the following figure:<br/>
 
3) Right click on the project name (on the left panel) and select <code>Properties</code> as shown in the following figure:<br/>
<span class="plainlinks">[http://www.gctronic.com/doc/images/e-puck-project-build1.png <img width=500 src="http://www.gctronic.com/doc/images/e-puck-project-build1.png">]</span><br/>
+
<span class="plainlinks">[https://www.gctronic.com/doc/images/e-puck-project-build1.png <img width=500 src="https://www.gctronic.com/doc/images/e-puck-project-build1.png">]</span><br/>
 
4) Select the <code>XC16</code> compiler from the <code>Compiler Toolchain</code> section and then click <code>OK</code> as shown in the following figure:<br/>
 
4) Select the <code>XC16</code> compiler from the <code>Compiler Toolchain</code> section and then click <code>OK</code> as shown in the following figure:<br/>
<span class="plainlinks">[http://www.gctronic.com/doc/images/e-puck-project-build2.png <img width=500 src="http://www.gctronic.com/doc/images/e-puck-project-build2.png">]</span><br/>
+
<span class="plainlinks">[https://www.gctronic.com/doc/images/e-puck-project-build2.png <img width=500 src="https://www.gctronic.com/doc/images/e-puck-project-build2.png">]</span><br/>
 
5) Open the project properties once more (right click on project name and then select <code>Properites</code>), a new configuration will be available for the XC16 compiler. On the left panel select <code>xc16-gcc</code>, then on the right specify <code>Memory model</code> and verify that the <code>Code model</code> is set to <code>Large</code>. Confirm with <code>OK</code> as shown in the following figure:<br/>
 
5) Open the project properties once more (right click on project name and then select <code>Properites</code>), a new configuration will be available for the XC16 compiler. On the left panel select <code>xc16-gcc</code>, then on the right specify <code>Memory model</code> and verify that the <code>Code model</code> is set to <code>Large</code>. Confirm with <code>OK</code> as shown in the following figure:<br/>
<span class="plainlinks">[http://www.gctronic.com/doc/images/e-puck-project-build3.png <img width=500 src="http://www.gctronic.com/doc/images/e-puck-project-build3.png">]</span><br/>
+
<span class="plainlinks">[https://www.gctronic.com/doc/images/e-puck-project-build3.png <img width=500 src="https://www.gctronic.com/doc/images/e-puck-project-build3.png">]</span><br/>
 
6) Now you can build the project by clicking on the <code>Build project</code> button (hammer icon on the top) or by pressing <code>F11</code>; if all is working you should end up with a successfully built firmware as shown in the following figure:<br/>
 
6) Now you can build the project by clicking on the <code>Build project</code> button (hammer icon on the top) or by pressing <code>F11</code>; if all is working you should end up with a successfully built firmware as shown in the following figure:<br/>
<span class="plainlinks">[http://www.gctronic.com/doc/images/e-puck-project-build4.png <img width=500 src="http://www.gctronic.com/doc/images/e-puck-project-build4.png">]</span><br/>
+
<span class="plainlinks">[https://www.gctronic.com/doc/images/e-puck-project-build4.png <img width=500 src="https://www.gctronic.com/doc/images/e-puck-project-build4.png">]</span><br/>
  
 
==Programming==
 
==Programming==
Line 254: Line 254:
 
If you are interested in development of embedded applications, you should firstly choose an adequate development environment. One of the most known IDE is the <code>MPLAB Integrated Development Environment</code> that you could download for free from the Microchip site; Microchip offers also the C compiler for free. One big advantage of this IDE is that it is multiplatform (Windows, Linux, Mac) and also the compiler is available for each platform.<br/>
 
If you are interested in development of embedded applications, you should firstly choose an adequate development environment. One of the most known IDE is the <code>MPLAB Integrated Development Environment</code> that you could download for free from the Microchip site; Microchip offers also the C compiler for free. One big advantage of this IDE is that it is multiplatform (Windows, Linux, Mac) and also the compiler is available for each platform.<br/>
 
To work with the e-puck software you need to:
 
To work with the e-puck software you need to:
* download and install the [http://www.microchip.com/mplab/mplab-x-ide MPLAB X IDE]; during installation select also <code>MPLAB IPE</code> to be installed, it is a nice utility to have
+
* download and install the [https://www.microchip.com/mplab/mplab-x-ide MPLAB X IDE]; during installation select also <code>MPLAB IPE</code> to be installed, it is a nice utility to have
* download and install the [http://www.microchip.com/mplab/compilers compiler], it must be the <code>MPLAB XC16</code> (supports all 16-bit PIC MCUs and dsPICs)
+
* download and install the [https://www.microchip.com/mplab/compilers compiler], it must be the <code>MPLAB XC16</code> (supports all 16-bit PIC MCUs and dsPICs)
  
Useful information related to the compiler can be found in the [http://projects.gctronic.com/E-Puck/docs/Programming/MPLAB_XC16_C_compiler_users_guide.pdf  MPLAB XC16 C compiler user's guide].
+
Useful information related to the compiler can be found in the [https://projects.gctronic.com/E-Puck/docs/Programming/MPLAB_XC16_C_compiler_users_guide.pdf  MPLAB XC16 C compiler user's guide].
  
 
===Aseba===
 
===Aseba===
 
Aseba is a set of tools which allow novices to program robots easily and efficiently, refere to [https://www.thymio.org/en:start https://www.thymio.org/en:start] for more information. <br/>
 
Aseba is a set of tools which allow novices to program robots easily and efficiently, refere to [https://www.thymio.org/en:start https://www.thymio.org/en:start] for more information. <br/>
 
Here is the page with the basic information needed to start working with Aseba and the e-puck robot [https://www.thymio.org/en:e-puck https://www.thymio.org/en:e-puck]. <br/>
 
Here is the page with the basic information needed to start working with Aseba and the e-puck robot [https://www.thymio.org/en:e-puck https://www.thymio.org/en:e-puck]. <br/>
You can download an MPLAB X project based on the git repo [https://github.com/aseba-community/aseba-target-epuck https://github.com/aseba-community/aseba-target-epuck] in the following link [http://projects.gctronic.com/E-Puck/aseba.zip aseba.zip]; place it in the "e-puck-library/program" folder (refer to section [http://www.gctronic.com/doc/index.php/E-Puck#Library http://www.gctronic.com/doc/index.php/E-Puck#Library] for more information on how to build).<br/>
+
You can download an MPLAB X project based on the git repo [https://github.com/aseba-community/aseba-target-epuck https://github.com/aseba-community/aseba-target-epuck] in the following link [https://projects.gctronic.com/E-Puck/aseba.zip aseba.zip]; place it in the "e-puck-library/program" folder (refer to section [https://www.gctronic.com/doc/index.php/E-Puck#Library https://www.gctronic.com/doc/index.php/E-Puck#Library] for more information on how to build).<br/>
You can download the last aseba firmware for the e-puck from the following link [http://projects.gctronic.com/E-Puck/aseba-target-epuck.hex aseba-target-epuck.hex].<br/>
+
You can download the last aseba firmware for the e-puck from the following link [https://projects.gctronic.com/E-Puck/aseba-target-epuck.hex aseba-target-epuck.hex].<br/>
 
Beware that at the moment the only bootloader capable of uploading the ''aseba-target-epuck.hex'' to the robot is the Linux version.
 
Beware that at the moment the only bootloader capable of uploading the ''aseba-target-epuck.hex'' to the robot is the Linux version.
  
 
===Python===
 
===Python===
 
Python is a widely used programming language supported by a large and comprehensive standard library. A Python library is available enabling the remote control of the e-puck robot, read the sensors values, control the motors while running the heavy processes on a computer.
 
Python is a widely used programming language supported by a large and comprehensive standard library. A Python library is available enabling the remote control of the e-puck robot, read the sensors values, control the motors while running the heavy processes on a computer.
You can start playing with the e-puck and Python by downloading the [http://projects.gctronic.com/E-Puck/epuck-python.zip e-puck python package], it contains:
+
You can start playing with the e-puck and Python by downloading the [https://projects.gctronic.com/E-Puck/epuck-python.zip e-puck python package], it contains:
 
* [https://www.python.org/download/releases/2.6.6/ Python 2.6.6]
 
* [https://www.python.org/download/releases/2.6.6/ Python 2.6.6]
 
* [https://pypi.python.org/pypi/setuptools Python setup tools]
 
* [https://pypi.python.org/pypi/setuptools Python setup tools]
 
* e-puck Python library: [https://github.com/mmartinortiz/pyePuck source]
 
* e-puck Python library: [https://github.com/mmartinortiz/pyePuck source]
* e-puck Python library dependencies: [https://github.com/karulis/pybluez pybluez], [http://www.pythonware.com/products/pil/ Python imaging library]
+
* e-puck Python library dependencies: [https://github.com/karulis/pybluez pybluez], [https://www.pythonware.com/products/pil/ Python imaging library]
 
* some examples (refers to [https://github.com/mmartinortiz/pyePuck/tree/master/examples examples])
 
* some examples (refers to [https://github.com/mmartinortiz/pyePuck/tree/master/examples examples])
 
Follow these steps to install Python and run your first Python example (this instructions are for Windows but the procedure should be similar also for Linux and Mac OS):
 
Follow these steps to install Python and run your first Python example (this instructions are for Windows but the procedure should be similar also for Linux and Mac OS):
Line 278: Line 278:
 
# Install the Python setup tools by running the script ''ez_setup.py'' you find in the ''Python2.6'' directory:  
 
# Install the Python setup tools by running the script ''ez_setup.py'' you find in the ''Python2.6'' directory:  
 
## issue the command ''python ez_setup.py'' in a terminal
 
## issue the command ''python ez_setup.py'' in a terminal
## alternatively you can download an IDE that will help you in programming, run and debug your code; a valid IDE is called [http://www.jetbrains.com/pycharm/ PyCharm]
+
## alternatively you can download an IDE that will help you in programming, run and debug your code; a valid IDE is called [https://www.jetbrains.com/pycharm/ PyCharm]
 
# Install e-puck Python library dependencies:
 
# Install e-puck Python library dependencies:
 
## install pybluez by issueing the command ''python setup.py install'' in a terminal (be sure to be in the ''dependencies\pybluez-master'' directory)
 
## install pybluez by issueing the command ''python setup.py install'' in a terminal (be sure to be in the ''dependencies\pybluez-master'' directory)
 
## install the PIL library by executing ''PIL-1.1.7.win32-py2.6.exe'' you find in the  ''dependencies'' directory
 
## install the PIL library by executing ''PIL-1.1.7.win32-py2.6.exe'' you find in the  ''dependencies'' directory
# Program the e-puck with the last [http://www.gctronic.com/doc/index.php/E-Puck#Standard_firmware standard firmware] and put the selector in position 3
+
# Program the e-puck with the last [https://www.gctronic.com/doc/index.php/E-Puck#Standard_firmware standard firmware] and put the selector in position 3
 
# Configure the Bluetooth connection with the e-puck in the computer (add Bluetooth device and insert its pin)
 
# Configure the Bluetooth connection with the e-puck in the computer (add Bluetooth device and insert its pin)
 
## when you add the e-puck robot as Bluetooth device, right click on the device and choose property; in the "Bluetooth" tab you'll find the mac address (something like 10:00:e8:c5:61:c9). Copy this address since you'll need it to connect to the robot when running the Python scripts
 
## when you add the e-puck robot as Bluetooth device, right click on the device and choose property; in the "Bluetooth" tab you'll find the mac address (something like 10:00:e8:c5:61:c9). Copy this address since you'll need it to connect to the robot when running the Python scripts
Line 291: Line 291:
 
==PC interface==
 
==PC interface==
 
An interface running on a computer and connecting to the e-puck through bluetooth based on the advanced sercom protocol (selector 3) was developed; from this interface it's possible to have information about all the sensors, receive camera images and control the leds and motors. The source code is available from the following links:
 
An interface running on a computer and connecting to the e-puck through bluetooth based on the advanced sercom protocol (selector 3) was developed; from this interface it's possible to have information about all the sensors, receive camera images and control the leds and motors. The source code is available from the following links:
<!--* Windows [http://www.gctronic.com/files/e-puckMonitor_2.0.rar version 2.0] ([http://www.gctronic.com/files/e-puckMonitor_2.0_code.rar Monitor2.0 source code])-->
+
<!--* Windows [https://www.gctronic.com/files/e-puckMonitor_2.0.rar version 2.0] ([https://www.gctronic.com/files/e-puckMonitor_2.0_code.rar Monitor2.0 source code])-->
* Multiplatform version 3.0 ([http://projects.gctronic.com/E-Puck/Monitor/MultiPlatformMonitorSrc1.8.zip Monitor3.0 source code]); the application is a Qt project, so the compilation may be handled easily with [http://qt.nokia.com/products/developer-tools/ Qt Creator]; alternatively [http://doc.trolltech.com/4.2/qmake-manual.html qmake] can be used. The following executables are compiled dynamically, so the [https://qt.nokia.com/downloads Qt library (4.5.0 or higher)] must be installed in the system in order to run them:
+
* Multiplatform version 3.0 ([https://projects.gctronic.com/E-Puck/Monitor/MultiPlatformMonitorSrc1.8.zip Monitor3.0 source code]); the application is a Qt project, so the compilation may be handled easily with [https://qt.nokia.com/products/developer-tools/ Qt Creator]; alternatively [https://doc.trolltech.com/4.2/qmake-manual.html qmake] can be used. The following executables are compiled dynamically, so the [https://qt.nokia.com/downloads Qt library (4.5.0 or higher)] must be installed in the system in order to run them:
**[http://www.gctronic.com/doc/images/EPuckMonitor Linux executable]: before running the executable, type &quot;chmod +x file&quot;
+
**[https://www.gctronic.com/doc/images/EPuckMonitor Linux executable]: before running the executable, type &quot;chmod +x file&quot;
**[http://www.gctronic.com/doc/images/EPuckMonitor.app.zip MacOS executable]
+
**[https://www.gctronic.com/doc/images/EPuckMonitor.app.zip MacOS executable]
**[http://www.gctronic.com/doc/images/EPuckMonitorWin.zip Windows executable (+ dlls); tested on Windows XP, Windows Vista, Windows 7, Windows 10] <br/>
+
**[https://www.gctronic.com/doc/images/EPuckMonitorWin.zip Windows executable (+ dlls); tested on Windows XP, Windows Vista, Windows 7, Windows 10] <br/>
<span class="plainlinks">[http://www.gctronic.com/doc/images/Monitor3.0.jpg <img width=300 src="http://www.gctronic.com/doc/images/Monitor3.0.jpg">]</span> <br/>
+
<span class="plainlinks">[https://www.gctronic.com/doc/images/Monitor3.0.jpg <img width=300 src="https://www.gctronic.com/doc/images/Monitor3.0.jpg">]</span> <br/>
Since the last version comprises a basic OpenGL representation of the e-puck you will need also the OpenGL extension libraries in order to compile the project; these should be included in the Qt SDK, but if you encounter problems refers to [http://doc.trolltech.com/4.6/qtopengl.html#details http://doc.trolltech.com/4.6/qtopengl.html#details]; basically you need to download manually the OpenGL libraries: GLX (Linux), CGL (MacOS), WGL (Windows). <br/>
+
Since the last version comprises a basic OpenGL representation of the e-puck you will need also the OpenGL extension libraries in order to compile the project; these should be included in the Qt SDK, but if you encounter problems refers to [https://doc.trolltech.com/4.6/qtopengl.html#details https://doc.trolltech.com/4.6/qtopengl.html#details]; basically you need to download manually the OpenGL libraries: GLX (Linux), CGL (MacOS), WGL (Windows). <br/>
Once the project is built dynamically, some errors about missing dll may be thrown; one of these missing libraries could be the [http://projects.gctronic.com/E-Puck/Monitor/mingwm10.dll mingwm10.dll]. Others could be related to Qt. To solve the problem you need either to build the project statically, or to register the libraries on the system, or to manually include all the dll with the executable.
+
Once the project is built dynamically, some errors about missing dll may be thrown; one of these missing libraries could be the [https://projects.gctronic.com/E-Puck/Monitor/mingwm10.dll mingwm10.dll]. Others could be related to Qt. To solve the problem you need either to build the project statically, or to register the libraries on the system, or to manually include all the dll with the executable.
 +
 
 +
==Connecting to multiple robots==
 +
A Python example is available for e-puck2 in the following section [https://www.gctronic.com/doc/index.php?title=e-puck2_PC_side_development#Connecting_to_multiple_robots PC side development: Connecting to multiple robots]. This example is compatible also with the e-puck1 robot.
  
 
==Examples==
 
==Examples==
 
===Basic demos===
 
===Basic demos===
 
The following set of simple programs for the e-puck has an increasing degree of complexity, from very basic LED blinking up to motor control depending on sensor input; it's a good starting point for beginner users. The first demos do not use interrupts and keep to a minimum the use of the library.
 
The following set of simple programs for the e-puck has an increasing degree of complexity, from very basic LED blinking up to motor control depending on sensor input; it's a good starting point for beginner users. The first demos do not use interrupts and keep to a minimum the use of the library.
You can download the set of these demos from this link [http://www.gctronic.com/doc/images/BasicDemos.zip BasicDemos.zip].<br/>
+
You can download the set of these demos from this link [https://www.gctronic.com/doc/images/BasicDemos.zip BasicDemos.zip].<br/>
 
A list of these basic programs is listed below:
 
A list of these basic programs is listed below:
 
* demo0: very simple LEDs blinking
 
* demo0: very simple LEDs blinking
Line 317: Line 320:
  
 
===Audio recording===
 
===Audio recording===
This demo program ([http://projects.gctronic.com/E-Puck/DemoGCtronic-recording/DemoGCtronic-recording.hex hex file], [http://projects.gctronic.com/E-Puck/DemoGCtronic-recording/DemoGCtronic-recording.zip MPLAB project]) let the e-puck recording for about two seconds whatever you like and then reproduces it infinitely. <br/>
+
This demo program ([https://projects.gctronic.com/E-Puck/DemoGCtronic-recording/DemoGCtronic-recording.hex hex file], [https://projects.gctronic.com/E-Puck/DemoGCtronic-recording/DemoGCtronic-recording.zip MPLAB project]) let the e-puck recording for about two seconds whatever you like and then reproduces it infinitely. <br/>
 
The program starts with a led animation (flow) and then turns all leds on for about two seconds, this is the moment for recording; note that only the right micro (mic0) is used.<br/>
 
The program starts with a led animation (flow) and then turns all leds on for about two seconds, this is the moment for recording; note that only the right micro (mic0) is used.<br/>
 
It's possible also to choose the volume/amplification of the reproduction using the selector (from 1 to 16).
 
It's possible also to choose the volume/amplification of the reproduction using the selector (from 1 to 16).
  
 
===Still images===
 
===Still images===
This demo program is optimized to let the robot handle images with resolution up to 640x480 pixels (the maximum reachable by the camera); after acquisition, the robot sends the images to a computer through bluetooth. This zip [http://projects.gctronic.com/E-Puck/ImageReceiverBT.zip ImageReceiverBT.zip] contains both the program for the robot (hex file) and the application for the computer (Windows platform). The selector of the robot must be in position 3.<br/>
+
This demo program is optimized to let the robot handle images with resolution up to 640x480 pixels (the maximum reachable by the camera); after acquisition, the robot sends the images to a computer through bluetooth. This zip [https://projects.gctronic.com/E-Puck/ImageReceiverBT.zip ImageReceiverBT.zip] contains both the program for the robot (hex file) and the application for the computer (Windows platform). The selector of the robot must be in position 3.<br/>
You can find the sources for the application running on the computer side from this link [http://projects.gctronic.com/E-Puck/ImageReceiverBTsrc.rar ImageReceiverBTsrc.rar]. <br/>
+
You can find the sources for the application running on the computer side from this link [https://projects.gctronic.com/E-Puck/ImageReceiverBTsrc.rar ImageReceiverBTsrc.rar]. <br/>
You can find the MPLAB project for the application running on the robot from this link [http://projects.gctronic.com/E-Puck/DemoGCtronic-vga-images.zip DemoGCtronic-vga-images.zip].
+
You can find the MPLAB project for the application running on the robot from this link [https://projects.gctronic.com/E-Puck/DemoGCtronic-vga-images.zip DemoGCtronic-vga-images.zip].
 +
 
 +
===Robots Collective Behavior===
 +
This is a Bachelor project developed by Jean-Roch Lauper at the [https://www.unifr.ch/ University of Fribourg]. The project's focus is on collective behaviors as well as on the use of sound to communicate between robots; moreover there are demos to interact with the robot through sensors and play with sound.<br/>
 +
The code is available on [https://github.com/jrlauper/jrl_epuck Github]. Demo videos are available on [https://www.youtube.com/playlist?list=PLrscHgSUZPdr38tirAsB4_4Q93khKP9Rv Youtube].
  
 
<!--
 
<!--
 
====Sampling frequency tutorial====
 
====Sampling frequency tutorial====
 
This tutorial explains how to setup a desired sampling frequency for the microphones; this tutorial is related to the &quot;Recoding-demo&quot;.
 
This tutorial explains how to setup a desired sampling frequency for the microphones; this tutorial is related to the &quot;Recoding-demo&quot;.
In the [http://ww1.microchip.com/downloads/en/DeviceDoc/70046E.pdf dsPIC30F Family Reference Manual], page 472, there is a formula to get the period of the conversion time (Tad):
+
In the [https://ww1.microchip.com/downloads/en/DeviceDoc/70046E.pdf dsPIC30F Family Reference Manual], page 472, there is a formula to get the period of the conversion time (Tad):
 
Tad = (Tcy*(ADCS+1))/2
 
Tad = (Tcy*(ADCS+1))/2
  
Line 363: Line 370:
  
 
==Bootloader==
 
==Bootloader==
* Windows: [http://projects.gctronic.com/E-Puck/TinyBld_1_10_6_pc_beta.zip Tiny Bootloader v1.10.6] or [http://sourceforge.net/projects/tinypicbootload/ Tiny Multi Bootloader+]
+
* Windows: [https://projects.gctronic.com/E-Puck/TinyBld_1_10_6_pc_beta.zip Tiny Bootloader v1.10.6] or [https://sourceforge.net/projects/tinypicbootload/ Tiny Multi Bootloader+]
* Linux: [http://projects.gctronic.com/E-Puck/epuck-bootloader-linux.zip epuck-bootloader-linux.zip]
+
* Linux: [https://projects.gctronic.com/E-Puck/epuck-bootloader-linux.zip epuck-bootloader-linux.zip]
 
** requirements: <code>sudo apt-get install libbluetooth-dev</code>
 
** requirements: <code>sudo apt-get install libbluetooth-dev</code>
 
* Mac OS: https://github.com/gctronic/e-puck-library/tree/master/tool/bootloader/computer_side/multi_platform
 
* Mac OS: https://github.com/gctronic/e-puck-library/tree/master/tool/bootloader/computer_side/multi_platform
 
** actually it is a Perl script, thus in principle it could be used also in Linux and Windows
 
** actually it is a Perl script, thus in principle it could be used also in Linux and Windows
 
** after pairing with the robot, you should issuing a command similar to <code>./epuckupload -f firmware.hex /dev/tty.e-puck_3675-COM1</code> and then press the reset button on the robot
 
** after pairing with the robot, you should issuing a command similar to <code>./epuckupload -f firmware.hex /dev/tty.e-puck_3675-COM1</code> and then press the reset button on the robot
<!-- * [http://www.gctronic.com/doc/images/pybootloader.zip Multiplatform]: this bootloader requires that python and the pyserial module are installed in the system; in order to run the bootloader, type &quot;python BootloaderGUI.py&quot;. This bootloader is adapted from the work done by [http://www.asl.ethz.ch/people/cedricp Dr. Cédric Pradalier].
+
<!-- * [https://www.gctronic.com/doc/images/pybootloader.zip Multiplatform]: this bootloader requires that python and the pyserial module are installed in the system; in order to run the bootloader, type &quot;python BootloaderGUI.py&quot;. This bootloader is adapted from the work done by [https://www.asl.ethz.ch/people/cedricp Dr. Cédric Pradalier].
 
-->
 
-->
  
 
==Others tools==
 
==Others tools==
From the official e-puck site you can find information about others software tools available for the e-puck robot in the following link [http://www.e-puck.org/index.php?option=com_content&view=article&id=18&Itemid=24 http://www.e-puck.org/index.php?option=com_content&view=article&id=18&Itemid=24].<br/>
+
From the official e-puck site you can find information about others software tools available for the e-puck robot in the following link [https://www.e-puck.org/index.php?option=com_content&view=article&id=18&Itemid=24 https://www.e-puck.org/index.php?option=com_content&view=article&id=18&Itemid=24].<br/>
 
===Local communication===
 
===Local communication===
An example of such tools is the [http://www.e-puck.org/index.php?option=com_content&view=article&id=32&Itemid=28 libIrcom], a local communication library exploiting the proximity sensors placed around the robot to modulate infrareds.<br/>
+
An example of such tools is the [https://www.e-puck.org/index.php?option=com_content&view=article&id=32&Itemid=28 libIrcom], a local communication library exploiting the proximity sensors placed around the robot to modulate infrareds.<br/>
If an higher throughput and longer communication distance are required, there is the [http://www.gctronic.com/doc/index.php/Others_Extensions#Range_and_bearing range and bearing extension] designed for this purpose.
+
If an higher throughput and longer communication distance are required, there is the [https://www.gctronic.com/doc/index.php/Others_Extensions#Range_and_bearing range and bearing extension] designed for this purpose.
  
 
=ROS=
 
=ROS=
 
This chapter explains how to use ROS with the e-puck robots; basically all the sensors are exposed to ROS and you can also send commands back to the robot through ROS. Both Pyhton and cpp versions are implemented to give the user the possibility to choose its preferred programming language. Here is a general schema:<br/>
 
This chapter explains how to use ROS with the e-puck robots; basically all the sensors are exposed to ROS and you can also send commands back to the robot through ROS. Both Pyhton and cpp versions are implemented to give the user the possibility to choose its preferred programming language. Here is a general schema:<br/>
<span class="plainlinks">[http://www.gctronic.com/doc/images/epuck-ros-schema.png <img width=450 src="http://www.gctronic.com/doc/images/epuck-ros-schema-small.png">]</span>
+
<span class="plainlinks">[https://www.gctronic.com/doc/images/epuck-ros-schema.png <img width=450 src="https://www.gctronic.com/doc/images/epuck-ros-schema-small.png">]</span>
 
''<font size="2">Click to enlarge</font>''<br/>
 
''<font size="2">Click to enlarge</font>''<br/>
  
First of all you need to install and configure ROS, refer to [http://wiki.ros.org/Distributions http://wiki.ros.org/Distributions] for more informations. Alternatively you can download directly a virtual machine pre-installed with everything you need, refer to section [http://www.gctronic.com/doc/index.php/E-Puck#Virtual_machine virtual machine]; this is the preferred way.  
+
First of all you need to install and configure ROS, refer to [https://wiki.ros.org/Distributions https://wiki.ros.org/Distributions] for more informations. Alternatively you can download directly a virtual machine pre-installed with everything you need, refer to section [https://www.gctronic.com/doc/index.php/E-Puck#Virtual_machine virtual machine]; this is the preferred way.  
 
:*<font style="color:red"> This tutorial is based on ROS Hydro</font>.
 
:*<font style="color:red"> This tutorial is based on ROS Hydro</font>.
:* If you downloaded the pre-installed VM you can go directly to section [http://www.gctronic.com/doc/index.php/E-Puck#Running_the_ROS_node Running the ROS node].
+
:* If you downloaded the pre-installed VM you can go directly to section [https://www.gctronic.com/doc/index.php/E-Puck#Running_the_ROS_node Running the ROS node].
  
The ROS epuck driver was initially developed by the [http://www.verlab.dcc.ufmg.br/ Verlab Laboratory at Universidade Federal de Minas Gerais], the related code can be found in the following repository [https://github.com/verlab-ros-pkg/epuck_driver https://github.com/verlab-ros-pkg/epuck_driver]. It is based on [http://wiki.ros.org/rospy rospy] (Python). We extended the initial driver to support all the e-puck sensors, the code can be found in the following repository [https://github.com/gctronic/epuck_driver https://github.com/gctronic/epuck_driver].<br/>
+
The ROS epuck driver was initially developed by the [https://www.verlab.dcc.ufmg.br/ Verlab Laboratory at Universidade Federal de Minas Gerais], the related code can be found in the following repository [https://github.com/verlab-ros-pkg/epuck_driver https://github.com/verlab-ros-pkg/epuck_driver]. It is based on [https://wiki.ros.org/rospy rospy] (Python). We extended the initial driver to support all the e-puck sensors, the code can be found in the following repository [https://github.com/gctronic/epuck_driver https://github.com/gctronic/epuck_driver].<br/>
 
Starting from the work done with the ROS epuck driver for python, we developed another ROS node based on roscpp that has the same functionalities; the code can be found in the following repository [https://github.com/gctronic/epuck_driver_cpp https://github.com/gctronic/epuck_driver_cpp].
 
Starting from the work done with the ROS epuck driver for python, we developed another ROS node based on roscpp that has the same functionalities; the code can be found in the following repository [https://github.com/gctronic/epuck_driver_cpp https://github.com/gctronic/epuck_driver_cpp].
  
 
==Initial configuration==
 
==Initial configuration==
 
The following steps need to be done only once after installing ROS:
 
The following steps need to be done only once after installing ROS:
:1. If not already done, create a catkin workspace, refer to [http://wiki.ros.org/catkin/Tutorials/create_a_workspace http://wiki.ros.org/catkin/Tutorials/create_a_workspace]. Basically you need to issue the following commands:   
+
:1. If not already done, create a catkin workspace, refer to [https://wiki.ros.org/catkin/Tutorials/create_a_workspace https://wiki.ros.org/catkin/Tutorials/create_a_workspace]. Basically you need to issue the following commands:   
 
<pre>  mkdir -p ~/catkin_ws/src
 
<pre>  mkdir -p ~/catkin_ws/src
 
   cd ~/catkin_ws/src
 
   cd ~/catkin_ws/src
Line 416: Line 423:
 
:** install the library used to communicate with Bluetooth: <code>sudo apt-get install libbluetooth-dev</code>
 
:** install the library used to communicate with Bluetooth: <code>sudo apt-get install libbluetooth-dev</code>
 
:6. Open a terminal and go to the catkin workspace directory (<tt>~/catkin_ws</tt>) and issue the command <code>catkin_make</code>, there shouldn't be errors
 
:6. Open a terminal and go to the catkin workspace directory (<tt>~/catkin_ws</tt>) and issue the command <code>catkin_make</code>, there shouldn't be errors
:7. Program the e-puck with the last [http://www.gctronic.com/doc/index.php/E-Puck#Standard_firmware standard firmware] and put the selector in position 3
+
:7. Program the e-puck with the last [https://www.gctronic.com/doc/index.php/E-Puck#Standard_firmware standard firmware] and put the selector in position 3
  
 
==Running the ROS node==
 
==Running the ROS node==
Line 426: Line 433:
 
If you're using Pyhton make sure the node is marked as executable by opening a terminal and issueing the following command from within the catkin workspace directory (e.g. ~/catkin_ws): <code>chmod +x ./src/epuck_driver/scripts/epuck_driver.py</code>. <br/>
 
If you're using Pyhton make sure the node is marked as executable by opening a terminal and issueing the following command from within the catkin workspace directory (e.g. ~/catkin_ws): <code>chmod +x ./src/epuck_driver/scripts/epuck_driver.py</code>. <br/>
  
Now you can finally start the ROS node, for this purposes there are two launch scripts (based on [http://wiki.ros.org/roslaunch roslaunch]), one for working with a single robot and the other to work with multiple robots. Before actually starting the node you need to configure the e-puck robot as Bluetooth device in the system and copy its mac address (this will be needed when launching the ROS node); if you want to work with multiple robots you need to add all of them as Bluetooth devices in the system and copy all the mac addresses. The procedure to add a Bluetooth device is:
+
Now you can finally start the ROS node, for this purposes there are two launch scripts (based on [https://wiki.ros.org/roslaunch roslaunch]), one for working with a single robot and the other to work with multiple robots. Before actually starting the node you need to configure the e-puck robot as Bluetooth device in the system and copy its mac address (this will be needed when launching the ROS node); if you want to work with multiple robots you need to add all of them as Bluetooth devices in the system and copy all the mac addresses. The procedure to add a Bluetooth device is:
 
# Go to <tt>System Settings</tt> (left panel has a link)
 
# Go to <tt>System Settings</tt> (left panel has a link)
 
# Click on <tt>Bluetooth</tt>
 
# Click on <tt>Bluetooth</tt>
Line 444: Line 451:
 
<tt>10:00:E8:C5:61:C9</tt> is the e-puck Bluetooth mac address and <tt>3000</tt> is the e-puck id (number on the case).
 
<tt>10:00:E8:C5:61:C9</tt> is the e-puck Bluetooth mac address and <tt>3000</tt> is the e-puck id (number on the case).
  
If all is going well you'll see the robot make a blink meaning it is connected and ready to exchange data (the blink is done only when using the Python ROS driver) and [http://wiki.ros.org/rviz/UserGuide rviz] will be opened showing the informations gathered from the topics published by the epuck driver node. The following graph shows all the topics published by the epuck driver node (Pyhton): <br/>
+
If all is going well you'll see the robot make a blink meaning it is connected and ready to exchange data (the blink is done only when using the Python ROS driver) and [https://wiki.ros.org/rviz/UserGuide rviz] will be opened showing the informations gathered from the topics published by the epuck driver node. The following graph shows all the topics published by the epuck driver node (Pyhton): <br/>
<span class="plainlinks">[http://www.gctronic.com/doc/images/rosgraph-single-robot.png <img width=300 src="http://www.gctronic.com/doc/images/rosgraph-single-robot-small.png">]</span>
+
<span class="plainlinks">[https://www.gctronic.com/doc/images/rosgraph-single-robot.png <img width=300 src="https://www.gctronic.com/doc/images/rosgraph-single-robot-small.png">]</span>
 
''<font size="2">Click to enlarge (Python)</font>''
 
''<font size="2">Click to enlarge (Python)</font>''
<span class="plainlinks">[http://www.gctronic.com/doc/images/epuck-ros-single-robot.png <img width=300 src="http://www.gctronic.com/doc/images/epuck-ros-single-robot-small.png">]</span>
+
<span class="plainlinks">[https://www.gctronic.com/doc/images/epuck-ros-single-robot.png <img width=300 src="https://www.gctronic.com/doc/images/epuck-ros-single-robot-small.png">]</span>
 
''<font size="2">Click to enlarge</font>''<br/>
 
''<font size="2">Click to enlarge</font>''<br/>
  
 
'''Cpp ROS driver'''<br/>
 
'''Cpp ROS driver'''<br/>
The cpp ROS driver launch script is configured also to run the [http://wiki.ros.org/gmapping gmapping (SLAM)] node that let the robot construct a map of the environment; the map is visualized in real-time directly in the rviz window. Here is a video:<br/>
+
The cpp ROS driver launch script is configured also to run the [https://wiki.ros.org/gmapping gmapping (SLAM)] node that let the robot construct a map of the environment; the map is visualized in real-time directly in the rviz window. Here is a video:<br/>
 
{{#ev:youtube|hn1FmpbF4rM}}
 
{{#ev:youtube|hn1FmpbF4rM}}
  
Line 461: Line 468:
 
* Python: <code>roslaunch epuck_driver multi_epuck.launch</code>
 
* Python: <code>roslaunch epuck_driver multi_epuck.launch</code>
 
* cpp: <code>roslaunch epuck_driver_cpp multi_epuck.launch</code>
 
* cpp: <code>roslaunch epuck_driver_cpp multi_epuck.launch</code>
If all is going well you'll see the robots make a blink meaning they are connected and ready to exchange data (the blink is done only when using the Python ROS driver) and [http://wiki.ros.org/rviz/UserGuide rviz] will be opened showing the proximity and odometry of all the 4 robots; it is assumed that the robots are placed in a square (each robot in each corner) of 20 cm.<br/>
+
If all is going well you'll see the robots make a blink meaning they are connected and ready to exchange data (the blink is done only when using the Python ROS driver) and [https://wiki.ros.org/rviz/UserGuide rviz] will be opened showing the proximity and odometry of all the 4 robots; it is assumed that the robots are placed in a square (each robot in each corner) of 20 cm.<br/>
  
 
In order to move the robots you can either use a TV remote or you can directly use ROS by publishing velocities commands by issueing the following command:<br/>
 
In order to move the robots you can either use a TV remote or you can directly use ROS by publishing velocities commands by issueing the following command:<br/>
Line 467: Line 474:
 
* this command will move the ''first'' e-puck with a linear velocity of 1 rotation per second (robot moves straight)
 
* this command will move the ''first'' e-puck with a linear velocity of 1 rotation per second (robot moves straight)
 
* only the ''x'' component of the linear velocity and the ''z'' component of the angular velocity are used
 
* only the ''x'' component of the linear velocity and the ''z'' component of the angular velocity are used
* for more information on the ''Twist'' message refer to [http://docs.ros.org/api/geometry_msgs/html/msg/Twist.html http://docs.ros.org/api/geometry_msgs/html/msg/Twist.html]
+
* for more information on the ''Twist'' message refer to [https://docs.ros.org/api/geometry_msgs/html/msg/Twist.html https://docs.ros.org/api/geometry_msgs/html/msg/Twist.html]
  
<span class="plainlinks">[http://www.gctronic.com/doc/images/roscpp_4robots.png <img width=300 src="http://www.gctronic.com/doc/images/roscpp_4robots_small.png">]</span>
+
<span class="plainlinks">[https://www.gctronic.com/doc/images/roscpp_4robots.png <img width=300 src="https://www.gctronic.com/doc/images/roscpp_4robots_small.png">]</span>
 
''<font size="2">Click to enlarge</font>''<br/>
 
''<font size="2">Click to enlarge</font>''<br/>
  
Line 479: Line 486:
 
With the cpp ROS driver the image is visualized directly in the rviz window (on the right), as shown in the following image:<br/>
 
With the cpp ROS driver the image is visualized directly in the rviz window (on the right), as shown in the following image:<br/>
  
<span class="plainlinks">[http://www.gctronic.com/doc/images/roscpp_1robot.png <img width=300 src="http://www.gctronic.com/doc/images/roscpp_1robot_small.png">]</span>
+
<span class="plainlinks">[https://www.gctronic.com/doc/images/roscpp_1robot.png <img width=300 src="https://www.gctronic.com/doc/images/roscpp_1robot_small.png">]</span>
 
''<font size="2">Click to enlarge</font>''<br/>
 
''<font size="2">Click to enlarge</font>''<br/>
  
 
==Virtual machine==
 
==Virtual machine==
To avoid the tedious work of installing and configuring all the system we provide a virtual machine which includes all the system requirements you need to start playing with ROS and e-puck. You can download the image as ''open virtualization format'' from the following link [http://projects.gctronic.com/VM/ROS-Hydro-12.04.ova ROS-Hydro-12.04.ova] (based on the VM from http://nootrix.com/2014/04/virtualized-ros-hydro/); you can then use [https://www.virtualbox.org/ VirtualBox] (together with the VirtualBox Extension Pack) to import the file and automatically create the virtual machine. Some details about the system:
+
To avoid the tedious work of installing and configuring all the system we provide a virtual machine which includes all the system requirements you need to start playing with ROS and e-puck. You can download the image as ''open virtualization format'' from the following link [https://projects.gctronic.com/VM/ROS-Hydro-12.04.ova ROS-Hydro-12.04.ova] (based on the VM from https://nootrix.com/2014/04/virtualized-ros-hydro/); you can then use [https://www.virtualbox.org/ VirtualBox] (together with the VirtualBox Extension Pack) to import the file and automatically create the virtual machine. Some details about the system:
 
* user: gctronic, pw: gctronic
 
* user: gctronic, pw: gctronic
 
* Ubuntu 12.04.4 LTS (32 bits)
 
* Ubuntu 12.04.4 LTS (32 bits)
 
* ROS Hydro installed
 
* ROS Hydro installed
 
* PyCharm: Python IDE used to extend the rospy e-puck driver; when you open the IDE it will open a project pointing to the ROS e-puck driver so you can immediately start diving into the code
 
* PyCharm: Python IDE used to extend the rospy e-puck driver; when you open the IDE it will open a project pointing to the ROS e-puck driver so you can immediately start diving into the code
* [http://www.cyberbotics.com/ Webots] 8.0.5 is installed (last version available for 32 bits linux)
+
* [https://www.cyberbotics.com/ Webots] 8.0.5 is installed (last version available for 32 bits linux)
* [http://git-cola.github.io/ git-cola] (git interface) is installed
+
* [https://git-cola.github.io/ git-cola] (git interface) is installed
 
* the <tt>catkin workspace</tt> is placed in the desktop
 
* the <tt>catkin workspace</tt> is placed in the desktop
  
Line 500: Line 507:
  
 
==Webots==
 
==Webots==
The [http://www.cyberbotics.com/ Webots] simulator integrates a ROS controller that publishes the sensor data of the e-puck robot in ROS, then we can exploit the multitude of packages available in ROS to process the sensors data and simulate the behavior of the e-puck by issueing commands through ROS.<br/>
+
The [https://www.cyberbotics.com/ Webots] simulator integrates a ROS controller that publishes the sensor data of the e-puck robot in ROS, then we can exploit the multitude of packages available in ROS to process the sensors data and simulate the behavior of the e-puck by issueing commands through ROS.<br/>
 
Once we're satisfied with the results in the simulator, we can test our algorithms in the real world by remote controlling the e-puck through Webots.<br/>
 
Once we're satisfied with the results in the simulator, we can test our algorithms in the real world by remote controlling the e-puck through Webots.<br/>
 
The following steps shows how to run the example included in Webots that let the e-puck follow a line using ROS:<br/>
 
The following steps shows how to run the example included in Webots that let the e-puck follow a line using ROS:<br/>
# Install the last version of [https://www.cyberbotics.com/ Webots] following the [https://www.cyberbotics.com/doc/guide/installing-webots instructions]; pay attention that starting from Webots 8.1.0 the support to linux 32 bit was dropped. The following instructions are based on Webots 8.2.1 and Ubuntu 14.0.4 64 bits (you can download a pre-installed virtual machine with ROS and Ubuntu from [http://nootrix.com/downloads/#RosVM http://nootrix.com/downloads/#RosVM].
+
# Install the last version of [https://www.cyberbotics.com/ Webots] following the [https://www.cyberbotics.com/doc/guide/installing-webots instructions]; pay attention that starting from Webots 8.1.0 the support to linux 32 bit was dropped. The following instructions are based on Webots 8.2.1 and Ubuntu 14.0.4 64 bits (you can download a pre-installed virtual machine with ROS and Ubuntu from [https://nootrix.com/downloads/#RosVM https://nootrix.com/downloads/#RosVM].
# Create a catkin workspace as explained in section [http://www.gctronic.com/doc/index.php/E-Puck#Initial_configuration Initial configuration] if you didn't already done
+
# Create a catkin workspace as explained in section [https://www.gctronic.com/doc/index.php/E-Puck#Initial_configuration Initial configuration] if you didn't already done
 
# Copy the directory <tt>nodes</tt> from  <tt>WEBOTS_MODULES_PATH/projects/languages/ros/</tt> (e.g. <tt>/home/viki/.local/share/Cyberbotics/Webots/8.2/projects/languages/ros/</tt>) to the catkin workspace source folder (e.g. <tt>~/catkin_ws/src</tt>)
 
# Copy the directory <tt>nodes</tt> from  <tt>WEBOTS_MODULES_PATH/projects/languages/ros/</tt> (e.g. <tt>/home/viki/.local/share/Cyberbotics/Webots/8.2/projects/languages/ros/</tt>) to the catkin workspace source folder (e.g. <tt>~/catkin_ws/src</tt>)
 
# Copy the directory <tt>srv</tt> from <tt>WEBOTS_MODULES_PATH/projects/default/controllers/ros/include</tt> (e.g. <tt>/home/viki/.local/share/Cyberbotics/Webots/8.2/projects/default/controllers/ros/include</tt>) to the <tt>nodes</tt> package just copied (e.g. ~/catkin_ws/src/nodes)
 
# Copy the directory <tt>srv</tt> from <tt>WEBOTS_MODULES_PATH/projects/default/controllers/ros/include</tt> (e.g. <tt>/home/viki/.local/share/Cyberbotics/Webots/8.2/projects/default/controllers/ros/include</tt>) to the <tt>nodes</tt> package just copied (e.g. ~/catkin_ws/src/nodes)
Line 515: Line 522:
  
 
===Webots ROS SLAM with e-puck===
 
===Webots ROS SLAM with e-puck===
This example shows how to use the [http://wiki.ros.org/gmapping gmapping (SLAM)] package of ROS to let the e-puck robot construct a map of the simulated environment; the map is visualized in real-time directly in the rviz window. Here are the steps to run the demo:
+
This example shows how to use the [https://wiki.ros.org/gmapping gmapping (SLAM)] package of ROS to let the e-puck robot construct a map of the simulated environment; the map is visualized in real-time directly in the rviz window. Here are the steps to run the demo:
# download the code from the following link [http://projects.gctronic.com/E-Puck/ROS/webots-ros-slam.zip webots-ros-slam.zip] and extract the zip
+
# download the code from the following link [https://projects.gctronic.com/E-Puck/ROS/webots-ros-slam.zip webots-ros-slam.zip] and extract the zip
 
# copy the source file <tt>nodes/src/e-puck_line_slam.cpp</tt> to the catkin workspace folder of the Webots nodes (e.g. <tt>~/catkin_ws/src/nodes/src</tt>)
 
# copy the source file <tt>nodes/src/e-puck_line_slam.cpp</tt> to the catkin workspace folder of the Webots nodes (e.g. <tt>~/catkin_ws/src/nodes/src</tt>)
 
# copy the folders <tt>nodes/config</tt>, <tt>nodes/launch</tt> and <tt>nodes/urdf</tt> to the catkin workspace folder of the Webots nodes (e.g. <tt>~/catkin_ws/src/nodes/</tt>)
 
# copy the folders <tt>nodes/config</tt>, <tt>nodes/launch</tt> and <tt>nodes/urdf</tt> to the catkin workspace folder of the Webots nodes (e.g. <tt>~/catkin_ws/src/nodes/</tt>)
Line 528: Line 535:
  
 
===Webots ROS and OpenCV with e-puck===
 
===Webots ROS and OpenCV with e-puck===
This example shows how to integrate [http://opencv.org/ OpenCV] with ROS to let the e-puck robot detect and follow a ball in the simulated environment. Here are the steps to run the demo:
+
This example shows how to integrate [https://opencv.org/ OpenCV] with ROS to let the e-puck robot detect and follow a ball in the simulated environment. Here are the steps to run the demo:
# download the code from the following link [http://projects.gctronic.com/E-Puck/ROS/webots-ros-opencv.zip webots-ros-opencv.zip] and extract the zip
+
# download the code from the following link [https://projects.gctronic.com/E-Puck/ROS/webots-ros-opencv.zip webots-ros-opencv.zip] and extract the zip
 
# copy the source file <tt>nodes/src/e-puck_opencv.cpp</tt> to the catkin workspace folder of the Webots nodes (e.g. <tt>~/catkin_ws/src/nodes/src</tt>)
 
# copy the source file <tt>nodes/src/e-puck_opencv.cpp</tt> to the catkin workspace folder of the Webots nodes (e.g. <tt>~/catkin_ws/src/nodes/src</tt>)
 
# copy the files <tt>nodes/CMakeLists.txt</tt> and <tt>package.xml</tt> to the catkin workspace folder of the Webots nodes (e.g. <tt>~/catkin_ws/src/nodes/</tt>) by substituting the current ones
 
# copy the files <tt>nodes/CMakeLists.txt</tt> and <tt>package.xml</tt> to the catkin workspace folder of the Webots nodes (e.g. <tt>~/catkin_ws/src/nodes/</tt>) by substituting the current ones
Line 541: Line 548:
  
 
==E-puck gumstix extension==
 
==E-puck gumstix extension==
For more information on how to use ROS with the e-puck gumstix extension refer to section [http://www.gctronic.com/doc/index.php/Overo_Extension#ROS http://www.gctronic.com/doc/index.php/Overo_Extension#ROS].
+
For more information on how to use ROS with the e-puck gumstix extension refer to section [https://www.gctronic.com/doc/index.php/Overo_Extension#ROS https://www.gctronic.com/doc/index.php/Overo_Extension#ROS].
  
 
=Test and Results=
 
=Test and Results=
 
==Bluetooth Communication Testing - PC to robot==
 
==Bluetooth Communication Testing - PC to robot==
 
Some tests were performed in order to analyze the bluetooth speed between a computer and the e-puck; the following three experiments were executed sending the same total amount of data but differently subdivided:
 
Some tests were performed in order to analyze the bluetooth speed between a computer and the e-puck; the following three experiments were executed sending the same total amount of data but differently subdivided:
* 19200 packets of 6 bytes each sent from computer to e-puck: about 65 seconds ([http://www.gctronic.com/doc/images/BTspeed.zip BTspeed.zip])
+
* 19200 packets of 6 bytes each sent from computer to e-puck: about 65 seconds ([https://www.gctronic.com/doc/images/BTspeed.zip BTspeed.zip])
* 2560 packets of 45 bytes each sent from computer to e-puck: about 20 seconds ([http://www.gctronic.com/doc/images/BTspeedPackets.zip BTspeedPackets.zip])
+
* 2560 packets of 45 bytes each sent from computer to e-puck: about 20 seconds ([https://www.gctronic.com/doc/images/BTspeedPackets.zip BTspeedPackets.zip])
* 1 packet of 115200 bytes sent from computer to e-puck: about 10 seconds ([http://www.gctronic.com/doc/images/BTspeedFile.zip BTspeedFile.zip])
+
* 1 packet of 115200 bytes sent from computer to e-puck: about 10 seconds ([https://www.gctronic.com/doc/images/BTspeedFile.zip BTspeedFile.zip])
 
Explanation: dividing a packet in small chunk of data (such as a single command) introduces pauses generated by the Bluetooth device of the PC. The mean measured delay time between a packet and the other is about 3 ms, but could be as high as 20 ms. Sending the packet in one single block like in the third experiment, has no pauses and thus needs exactly the theoretical time of 10 seconds for the channel at 115'200 Baud.
 
Explanation: dividing a packet in small chunk of data (such as a single command) introduces pauses generated by the Bluetooth device of the PC. The mean measured delay time between a packet and the other is about 3 ms, but could be as high as 20 ms. Sending the packet in one single block like in the third experiment, has no pauses and thus needs exactly the theoretical time of 10 seconds for the channel at 115'200 Baud.
  
Line 554: Line 561:
 
Some tests were performed also to analyze the maximum speed reachable between two robots using direct communication, that is one acting as the master and the other as the slave. The Bluetooth 2.0 specification asserts 1 Mbit/s air data rate, but in practice with the Bluetooth protocol overhead the usable bandwidth is lower; moreover in our case there are others two facts to take in consideration:
 
Some tests were performed also to analyze the maximum speed reachable between two robots using direct communication, that is one acting as the master and the other as the slave. The Bluetooth 2.0 specification asserts 1 Mbit/s air data rate, but in practice with the Bluetooth protocol overhead the usable bandwidth is lower; moreover in our case there are others two facts to take in consideration:
 
# the communication between the robot and the BT chip is configured to be at 115200 bps
 
# the communication between the robot and the BT chip is configured to be at 115200 bps
# the buffer handling system of the BT chip is capable of receive at maximum 200 packets per second (refers to [http://projects.gctronic.com/E-Puck/docs/BT/SB_UART_AN.pdf UART buffer AN.pdf])
+
# the buffer handling system of the BT chip is capable of receive at maximum 200 packets per second (refers to [https://projects.gctronic.com/E-Puck/docs/BT/SB_UART_AN.pdf UART buffer AN.pdf])
 
From the tests the resulting throughput is '''18 Kb/s''', sending a total of 41000 bytes with 41 bytes for each packet and waiting the response from the chip before sending the next packet; moving the slave device several meters away from the master influences the communication speed, that slows down. <br/>
 
From the tests the resulting throughput is '''18 Kb/s''', sending a total of 41000 bytes with 41 bytes for each packet and waiting the response from the chip before sending the next packet; moving the slave device several meters away from the master influences the communication speed, that slows down. <br/>
The sources (MPLAB project) of the firmware used for this test can be downloaded from the following link [http://projects.gctronic.com/E-Puck/DemoGCtronic-BT.zip DemoGCtronic-BT.zip] (master=selector position 9, slave=selector position 4).<br/><br/>
+
The sources (MPLAB project) of the firmware used for this test can be downloaded from the following link [https://projects.gctronic.com/E-Puck/DemoGCtronic-BT.zip DemoGCtronic-BT.zip] (master=selector position 9, slave=selector position 4).<br/><br/>
There is an additional example that shows how to establish a direct Bluetooth link between two e-pucks. This firmware is intended to be programmed on the master robot (selector 0); the master will send commands using the "asercom protocol" to a slave robot, that is the first robot found during the search, in order to turn on its leds in sequence. The slave robot is intended to be programmed with the [http://www.gctronic.com/doc/index.php/E-Puck#Standard_firmware standard firmware] (selector position 3).<br/>
+
There is an additional example that shows how to establish a direct Bluetooth link between two e-pucks. This firmware is intended to be programmed on the master robot (selector 0); the master will send commands using the "asercom protocol" to a slave robot, that is the first robot found during the search, in order to turn on its leds in sequence. The slave robot is intended to be programmed with the [https://www.gctronic.com/doc/index.php/E-Puck#Standard_firmware standard firmware] (selector position 3).<br/>
You can download the MPLAB X project from here [http://projects.gctronic.com/E-Puck/DemoGCtronic-BT-asercom.zip DemoGCtronic-BT-asercom.zip]; in order to build refer to section [http://www.gctronic.com/doc/index.php/E-Puck#Project_building Project_building]. The Bluetooth library was extended to build this demo, you can download it from here [http://projects.gctronic.com/E-Puck/bluetooth.zip bluetooth.zip]; this library must replace the one included in the e-puck library in order to build the project.<br/>
+
You can download the MPLAB X project from here [https://projects.gctronic.com/E-Puck/DemoGCtronic-BT-asercom.zip DemoGCtronic-BT-asercom.zip]; in order to build refer to section [https://www.gctronic.com/doc/index.php/E-Puck#Project_building Project_building]. The Bluetooth library was extended to build this demo, you can download it from here [https://projects.gctronic.com/E-Puck/bluetooth.zip bluetooth.zip]; this library must replace the one included in the e-puck library in order to build the project.<br/>
 
There are various modes available on this demo, depending on the selector position:
 
There are various modes available on this demo, depending on the selector position:
* 0: search for an e-puck1 or e-puck2 and connect to the first one found, then send some commands to it through the [http://www.gctronic.com/doc/index.php/Advanced_sercom_protocol advanced sercom protocol]
+
* 0: search for an e-puck1 or e-puck2 and connect to the first one found, then send some commands to it through the [https://www.gctronic.com/doc/index.php/Advanced_sercom_protocol advanced sercom protocol]
 
* 1: receiver mode (template)
 
* 1: receiver mode (template)
 
* 2: connect directly to an e-puck1 (no search is accomplished) and then send some commands to it
 
* 2: connect directly to an e-puck1 (no search is accomplished) and then send some commands to it
Line 566: Line 573:
  
 
==e-puck balancing==
 
==e-puck balancing==
The users can transform the e-puck in a self balancing robot by applying some mechanical modifications as shown in the following figure. Here are the 3d models of the [http://projects.gctronic.com/E-Puck/balance/WheelExtensionD52.STL wheel tyre extension] and [http://projects.gctronic.com/E-Puck/balance/Spacer28mm.STL spacer]. For more information on the assembly please contact us.<br/>
+
The users can transform the e-puck in a self balancing robot by applying some mechanical modifications as shown in the following figure. Here are the 3d models of the [https://projects.gctronic.com/E-Puck/balance/WheelExtensionD52.STL wheel tyre extension] and [https://projects.gctronic.com/E-Puck/balance/Spacer28mm.STL spacer]. For more information on the assembly please contact us.<br/>
<span class="plainlinks">[http://www.gctronic.com/doc/images/epuck-balance.jpg <img width=250 src="http://www.gctronic.com/doc/images/epuck-balance-small.jpg">]</span>
+
<span class="plainlinks">[https://www.gctronic.com/doc/images/epuck-balance.jpg <img width=250 src="https://www.gctronic.com/doc/images/epuck-balance-small.jpg">]</span>
 
''<font size="2">Click to enlarge</font>''<br/>
 
''<font size="2">Click to enlarge</font>''<br/>
  
Here is a video of the e-puck trying to self balance; this is only a starting point to demonstrate the feasiblity, so you can take the [http://projects.gctronic.com/E-Puck/balance/DemoGCtronic-balance.zip code (MPLAB X project)] and improve it.
+
Here is a video of the e-puck trying to self balance; this is only a starting point to demonstrate the feasiblity, so you can take the [https://projects.gctronic.com/E-Puck/balance/DemoGCtronic-balance.zip code (MPLAB X project)] and improve it.
 
{{#ev:youtube|JVz0P2ZaCsw}}
 
{{#ev:youtube|JVz0P2ZaCsw}}
  
Line 576: Line 583:
 
The [https://www.arduino.cc/ Arduino] boards are used widely in the hobby community and you can extend the functionalities of a board by using the so called ''shields''; there are tons of shields like WiFi, SD reader/writer, battery, XBee, GSM, speech recognition, rfid, ... there is a shield for everything (almost). For these reasons we decided to connect an Arduino to the e-puck robot.<br/>
 
The [https://www.arduino.cc/ Arduino] boards are used widely in the hobby community and you can extend the functionalities of a board by using the so called ''shields''; there are tons of shields like WiFi, SD reader/writer, battery, XBee, GSM, speech recognition, rfid, ... there is a shield for everything (almost). For these reasons we decided to connect an Arduino to the e-puck robot.<br/>
 
I2C is used to communicate between the e-puck (master) and the Arduino (slave), this is the easiest way to get both a communication channel and the power from the e-puck thanks to an already available connector on the robot. The connector is placed on the bottom side of the e-puck main pcb as shown in the following figures:<br/>
 
I2C is used to communicate between the e-puck (master) and the Arduino (slave), this is the easiest way to get both a communication channel and the power from the e-puck thanks to an already available connector on the robot. The connector is placed on the bottom side of the e-puck main pcb as shown in the following figures:<br/>
<span class="plainlinks">[http://www.gctronic.com/doc/images/epuck-arduino-connector2.jpg <img width=250 src="ttp://www.gctronic.com/doc/images/epuck-arduino-connector2-small.jpg">]</span>
+
<span class="plainlinks">[https://www.gctronic.com/doc/images/epuck-arduino-connector2.jpg <img width=250 src="ttp://www.gctronic.com/doc/images/epuck-arduino-connector2-small.jpg">]</span>
 
''<font size="2">Click to enlarge</font>''
 
''<font size="2">Click to enlarge</font>''
<span class="plainlinks">[http://www.gctronic.com/doc/images/epuck-arduino-connector3.jpg <img width=250 src="http://www.gctronic.com/doc/images/epuck-arduino-connector3-small.jpg">]</span>
+
<span class="plainlinks">[https://www.gctronic.com/doc/images/epuck-arduino-connector3.jpg <img width=250 src="https://www.gctronic.com/doc/images/epuck-arduino-connector3-small.jpg">]</span>
 
''<font size="2">Click to enlarge</font>''<br/>
 
''<font size="2">Click to enlarge</font>''<br/>
 
The following figure shows the schema to connect the e-puck to the Arduino Uno board; you can follow the same schema to connect to other Arduino boards paying attention to the related pinout.<br/>
 
The following figure shows the schema to connect the e-puck to the Arduino Uno board; you can follow the same schema to connect to other Arduino boards paying attention to the related pinout.<br/>
 
Power and voltage considerations: in this configuration, the e-puck battery (LiPo 3.7Volt) powers directly also the Arduino board to its 5 Volt line. This is ok for the tested demos but it might be limiting in some rare cases. Let us know your goals and experiments to get support. The I2C lines are simply protected with 2 series resistors in order to limit any excessive current into the PIC.<br/>
 
Power and voltage considerations: in this configuration, the e-puck battery (LiPo 3.7Volt) powers directly also the Arduino board to its 5 Volt line. This is ok for the tested demos but it might be limiting in some rare cases. Let us know your goals and experiments to get support. The I2C lines are simply protected with 2 series resistors in order to limit any excessive current into the PIC.<br/>
<span class="plainlinks">[http://www.gctronic.com/doc/images/epuck-arduino-schema.png <img width=350 src="http://www.gctronic.com/doc/images/epuck-arduino-schema-small.png">]</span>
+
<span class="plainlinks">[https://www.gctronic.com/doc/images/epuck-arduino-schema.png <img width=350 src="https://www.gctronic.com/doc/images/epuck-arduino-schema-small.png">]</span>
 
''<font size="2">Click to enlarge</font>''<br/>
 
''<font size="2">Click to enlarge</font>''<br/>
Here is a video of a demo in which you can control the e-puck with your voice; the e-puck is connected to an [https://www.arduino.cc/en/Main/ArduinoBoardUno Arduino Uno] that is extended with an [http://www.veear.eu/ Easy VR shield] for speech recognition.
+
Here is a video of a demo in which you can control the e-puck with your voice; the e-puck is connected to an [https://www.arduino.cc/en/Main/ArduinoBoardUno Arduino Uno] that is extended with an [https://www.veear.eu/ Easy VR shield] for speech recognition.
 
{{#ev:youtube|9tNM7lEzFMQ}}
 
{{#ev:youtube|9tNM7lEzFMQ}}
The source code of the demo is available in the following links: [http://projects.gctronic.com/E-Puck/arduino/DemoGCtronic-arduino.zip MPLAB project] for the e-puck, [http://projects.gctronic.com/E-Puck/arduino/epuck_arduino.zip Arduino IDE (1.6.6) project] for the Arduino Uno board (you'll need the Easy VR Arduino library to build the project).<br/>
+
The source code of the demo is available in the following links: [https://projects.gctronic.com/E-Puck/arduino/DemoGCtronic-arduino.zip MPLAB project] for the e-puck, [https://projects.gctronic.com/E-Puck/arduino/epuck_arduino.zip Arduino IDE (1.6.6) project] for the Arduino Uno board (you'll need the Easy VR Arduino library to build the project).<br/>
A test project that works without any shield is available in the following link [http://projects.gctronic.com/E-Puck/arduino/epuck_arduino_test.zip Arduino IDE (1.6.6) test project], this demo rotates continuously the robot right and left. It works with the same robot firmware as the previous demo.<br/>
+
A test project that works without any shield is available in the following link [https://projects.gctronic.com/E-Puck/arduino/epuck_arduino_test.zip Arduino IDE (1.6.6) test project], this demo rotates continuously the robot right and left. It works with the same robot firmware as the previous demo.<br/>
 
We designed a support in order to mechanically attaching the Arduino board on top of the e-puck robot as shown in the following figure.<br/>
 
We designed a support in order to mechanically attaching the Arduino board on top of the e-puck robot as shown in the following figure.<br/>
<span class="plainlinks">[http://www.gctronic.com/doc/images/epuck-arduino-support.jpg <img width=350 src="http://www.gctronic.com/doc/images/epuck-arduino-support-small.jpg">]</span>
+
<span class="plainlinks">[https://www.gctronic.com/doc/images/epuck-arduino-support.jpg <img width=350 src="https://www.gctronic.com/doc/images/epuck-arduino-support-small.jpg">]</span>
 
''<font size="2">Click to enlarge</font>''<br/>
 
''<font size="2">Click to enlarge</font>''<br/>
Here is the [http://projects.gctronic.com/E-Puck/arduino/SuppArduinoONE_V2.STL support 3D model] that you can print with your 3d printer. Alternatively you can purchase an "e-puck arduino set" from the [http://www.gctronic.com/shop.php#e-puck%20accessories shop].
+
Here is the [https://projects.gctronic.com/E-Puck/arduino/SuppArduinoONE_V2.STL support 3D model] that you can print with your 3d printer. Alternatively you can purchase an "e-puck arduino set" from the [https://www.gctronic.com/shop.php#e-puck%20accessories shop].
  
 
=Known problems=
 
=Known problems=
 
==Re-flashing the bootloader on e-puck==
 
==Re-flashing the bootloader on e-puck==
 
In some cases it was reported that the internal bootloader on e-puck was corrupted due to a malfunction of the last code upload.<br/>
 
In some cases it was reported that the internal bootloader on e-puck was corrupted due to a malfunction of the last code upload.<br/>
In those cases the bootloader ([http://projects.gctronic.com/E-Puck/DemoGCtronic-complete/DemoGCtronic-complete-4bba145+bootloader.hex DemoGCtronic-complete-4bba145+bootloader.hex]) has to be re-flashed on the robot via cable (see figure) with ICD2 or ICD3 and MPLAB IDE or compatible HW and SW.<br/>
+
In those cases the bootloader ([https://projects.gctronic.com/E-Puck/DemoGCtronic-complete/DemoGCtronic-complete-4bba145+bootloader.hex DemoGCtronic-complete-4bba145+bootloader.hex]) has to be re-flashed on the robot via cable (see figure) with ICD2 or ICD3 and MPLAB IDE or compatible HW and SW.<br/>
See the procedure ([http://projects.gctronic.com/E-Puck/KnownProblems/Instruction-re-program-bootloader-e-puck.pdf Instruction re-program bootloader.pdf]) and in case of need contact info[at]gctronic.com.<br/>
+
See the procedure ([https://projects.gctronic.com/E-Puck/KnownProblems/Instruction-re-program-bootloader-e-puck.pdf Instruction re-program bootloader.pdf]) and in case of need contact info[at]gctronic.com.<br/>
<span class="plainlinks">[http://www.gctronic.com/doc/images/E-puck_prog_cable1.jpg <img width=400 src="http://www.gctronic.com/doc/images/E-puck_prog_cable1.jpg">]</span>
+
<span class="plainlinks">[https://www.gctronic.com/doc/images/E-puck_prog_cable1.jpg <img width=400 src="https://www.gctronic.com/doc/images/E-puck_prog_cable1.jpg">]</span>
<span class="plainlinks">[http://www.gctronic.com/doc/images/epuckICDProgConn.png <img width=400 src="http://www.gctronic.com/doc/images/epuckICDProgConn.png">]</span>
+
<span class="plainlinks">[https://www.gctronic.com/doc/images/epuckICDProgConn.png <img width=400 src="https://www.gctronic.com/doc/images/epuckICDProgConn.png">]</span>
  
 
==Uncorrect/unknown bluetooth PIN code==
 
==Uncorrect/unknown bluetooth PIN code==
Line 605: Line 612:
 
the issue is linked to trials of robot to robot direct communication. One robot could have picked up the PIN of the other one, so you could try that PIN to get access to the robot. Another possibility is to try the default pin number 0000.<br/>
 
the issue is linked to trials of robot to robot direct communication. One robot could have picked up the PIN of the other one, so you could try that PIN to get access to the robot. Another possibility is to try the default pin number 0000.<br/>
 
In order to restore the name and pin number of the robot you can either make a program specifically for this purpose (1) or use the standard firmware but you would need the serial cable (2):
 
In order to restore the name and pin number of the robot you can either make a program specifically for this purpose (1) or use the standard firmware but you would need the serial cable (2):
# the e-puck library contains the functions to interact with the BT chip and change all its configurations including pin number and friendly name; for a code example refer to the example [http://projects.gctronic.com/E-Puck/DemoBTConfiguration-rev119.zip DemoBTConfiguration.zip], that simply rewrite the pin and friendly name (change only the pin number in the code, the friendly name will be changed accordingly). Another source of insipiration is the [http://www.gctronic.com/doc/index.php/E-Puck#Standard_firmware Standard_firmware], the part of the code related to selector 11. In case the chip isn't responding be sure it is in ''command mode'' (use the function <code>e_bt_exit_tranparent_mode</code>).  
+
# the e-puck library contains the functions to interact with the BT chip and change all its configurations including pin number and friendly name; for a code example refer to the example [https://projects.gctronic.com/E-Puck/DemoBTConfiguration-rev119.zip DemoBTConfiguration.zip], that simply rewrite the pin and friendly name (change only the pin number in the code, the friendly name will be changed accordingly). Another source of insipiration is the [https://www.gctronic.com/doc/index.php/E-Puck#Standard_firmware Standard_firmware], the part of the code related to selector 11. In case the chip isn't responding be sure it is in ''command mode'' (use the function <code>e_bt_exit_tranparent_mode</code>).  
# program the robot with the [http://www.gctronic.com/doc/index.php/E-Puck#Standard_firmware Standard_firmware] and put the selector in position 11. Connect the serial cable to the robot as shown in section [http://www.gctronic.com/doc/index.php/E-Puck#Serial_communication Serial_communication] and to the computer (you would need an USB to serial adapter); open the port using this configuration 115200n8. Once the communication channel is opened type the command <code>H+enter</code> to get the help. You can get the serial cable from the [http://www.gctronic.com/shop.php#e-puck%20accessories shop].
+
# program the robot with the [https://www.gctronic.com/doc/index.php/E-Puck#Standard_firmware Standard_firmware] and put the selector in position 11. Connect the serial cable to the robot as shown in section [https://www.gctronic.com/doc/index.php/E-Puck#Serial_communication Serial_communication] and to the computer (you would need an USB to serial adapter); open the port using this configuration 115200n8. Once the communication channel is opened type the command <code>H+enter</code> to get the help. You can get the serial cable from the [https://www.gctronic.com/shop.php#e-puck%20accessories shop].
  
 
==Battery isolation (for battery up to 2012)==
 
==Battery isolation (for battery up to 2012)==
You should be careful when inserting and removing the battery of the e-puck in the robot or in the charger. Otherwise in the long run your battery will eventually lose its front isolator (plastic of cardboard), causing a possible short circuit. If you are already in this situation, you could try placing some isolation tape on the battery, as illustrated in the following figure. The correct procedure to insert and remove the batteries can be found in the following document [http://projects.gctronic.com/E-Puck/docs/CambiareBatte-puck.pdf Change-batteries.pdf]. Basically you need to fully push in the battery compressing the springs before tilting the battery in the final position.<br/>
+
You should be careful when inserting and removing the battery of the e-puck in the robot or in the charger. Otherwise in the long run your battery will eventually lose its front isolator (plastic of cardboard), causing a possible short circuit. If you are already in this situation, you could try placing some isolation tape on the battery, as illustrated in the following figure. The correct procedure to insert and remove the batteries can be found in the following document [https://projects.gctronic.com/E-Puck/docs/CambiareBatte-puck.pdf Change-batteries.pdf]. Basically you need to fully push in the battery compressing the springs before tilting the battery in the final position.<br/>
<span class="plainlinks">[http://www.gctronic.com/doc/images/Battery.jpg <img width=300 src="http://www.gctronic.com/doc/images/Battery.jpg">]</span>
+
<span class="plainlinks">[https://www.gctronic.com/doc/images/Battery.jpg <img width=300 src="https://www.gctronic.com/doc/images/Battery.jpg">]</span>
  
 
==Bluetooth and MacBook==
 
==Bluetooth and MacBook==
Line 645: Line 652:
  
 
=Links=
 
=Links=
[http://www.e-puck.org/ http://www.e-puck.org/] <br/>
+
[https://www.e-puck.org/ https://www.e-puck.org/] <br/>
 
[https://www.cyberbotics.com/doc/guide/epuck https://www.cyberbotics.com/doc/guide/epuck] <br/>
 
[https://www.cyberbotics.com/doc/guide/epuck https://www.cyberbotics.com/doc/guide/epuck] <br/>
[http://mobots.epfl.ch/e-puck.html http://mobots.epfl.ch/e-puck.html] <br/>
+
[https://mobots.epfl.ch/e-puck.html https://mobots.epfl.ch/e-puck.html] <br/>
 
[https://github.com/gctronic/e-puck-library https://github.com/gctronic/e-puck-library] <br/>
 
[https://github.com/gctronic/e-puck-library https://github.com/gctronic/e-puck-library] <br/>
[http://en.wikipedia.org/wiki/E-puck_mobile_robot http://en.wikipedia.org/wiki/E-puck_mobile_robot] <br/>
+
[https://en.wikipedia.org/wiki/E-puck_mobile_robot https://en.wikipedia.org/wiki/E-puck_mobile_robot] <br/>
  
 
=Videos=
 
=Videos=
 
{{#ev:youtube|jB0qq7ffQUg}}
 
{{#ev:youtube|jB0qq7ffQUg}}

Latest revision as of 10:27, 27 January 2023

1 Hardware

1.1 Revisions

There are three hardware revisions:

  • HWRev 1.1: models from 0 to 1499
  • HWRev 1.2: models from 1500 on, production of June 2008
  • HWRev 1.3: models from 3320 on, production August 2014

The following table summarizes the differences between revisions:

Camera Bluetooth Accelerometer Microphone
HWRev 1.1 PixelPlus PO3030 (VGA) LMX9820 Bluetooth 1.1 MMA7260 3-axes analog acclerometer SiSonic SP0103NC3-3
HWRev 1.2 PixelPlus PO6030 (VGA) LMX9838 Bluetooth 2.0 MMA7260 3-axes analog acclerometer SiSonic SPM0208HD5
HWRev 1.3 PixelPlus PO8030 (VGA) LMX9838 Bluetooth 2.0 LSM330 3-axes digital (I2C) acclerometer + 3-axes gyroscope SiSonic SPU0414HR5H-SB

The updated e-puck library handles automatically the various hardware revisions in order to be compatible with the existing standard software.

1.1.1 Camera

The orientation of the camera is different in each hardware revision and also in the case of HWRev 1.1 the same camera model can be oriented differently, here is an image that shows the different cameras and related orientation:

The e-puck library configures the camera in order to get the right orientation for all situations except when it is rotated by 90 degrees. In order to let the user distinguish the current camera mounted on the robot and in case it is rotated by 90 degrees apply the related processing, the EEPROM is modified based on the camera model mounted on the robot and its orientation. This modification follow these rules: the modification apply only to the last word of the EEPROM, at address 0x7FFFFE; bits 14 and 15 are used to indicate the rotation (11=no rotation, 01=90 degrees, 10=-90 degrees, 00=180 degrees), bits 12 and 13 are used to indicate the camera model (11=PO3030, 10=PO6030, 01=PO8030). The possible values for the EEPROM are thus:

  • 0xFFFF (0xFFF1111): PO3030 with no rotation
  • 0xFFFE (0xFFF1110): PO3030 turned by -90 degrees
  • 0xFFF9 (0xFFF1000): PO6030 turned by 180 degrees
  • 0xFFF7 (0xFFF0111): PO8030 with no rotation

The following example illustrates how to read this word:

#include <DataEEPROM.h>

/*read HW version from the eeprom (last word)*/

int HWversion=0xFFFF;

int temp = 0;

temp = ReadEE(0x7F,0xFFFE,&HWversion, 1);

This project (src) is an example on how to write the last word of the EEPROM.

Beware that not all robots are shipped with the EEPROM programmed as specified previously. It is up to the user to check this modification by simply using the advanced sercom demo (selector in position 3) and requesting the version (command v); the hardware version returned by the command corresponds to the value of the last word of the EEPROM.

1.1.2 Accelerometer

The actual accelerometer mounted on the robot is automatically detected by the library at startup. The values ranges of the digital accelerometer are different from the analog accelerometer, but the library scale them to be similar in order to be compatible with the existing demos. The orientation of the accelerometer is shown below, the x axis points left, the y axis points forward and z points upward:

For users playing with e-puck HWRev1.3 and gumstix extension refer to section Accelerometer and gyroscope (e-puck_HWRev_1.3).

1.1.3 Microphone

From HWRev 1.3 the microphone sensitivity resulted a little bit different from the previous hardware revision; some empirical tests show that the difference is about ±15% so beware to adapt the thresholds in your applications if you need.

1.1.4 Gyroscope

The gyroscope is available from HWRev 1.3. The orientation of the gyro is shown below, the x axis points forward, the y axis points left and the z axis points upward:

For users playing with e-puck HWRev1.3 and gumstix extension refer to section Accelerometer and gyroscope (e-puck_HWRev_1.3).

1.2 Specifications

The hardware specifications are valid for all e-puck models, except when explicitly specified with an hardware revision.

  • Camera: details
    • HWRev 1.1: PixelPlus PO3030K CMOS image sensor, Data Sheet, no IR cut filter
    • HWRev 1.2: PixelPlus PO6030K CMOS image sensor, Data Sheet, no IR cut filter
    • HWRev 1.3: PixelPlus PO8030D CMOS image sensor, Data Sheet, no IR cut filter

1.3 Serial communication

The communication between the robot and the computer can be also handled with a serial cable; the serial connector position on the robot, the related cable and the electric schema are shown on the following figures.

In order to communicate with the robot through a serial line, the robot firmware must be implemented using the functions of the UART2 instead the one of UART1 (BT). All the functions implemented for the UART1 are also available for the UART2, so it's only a matter of changing the function call names. Anyway the standard firmware contains already a mode that communicates over serial line selecting position 11; in this mode you can configure the BT.

1.4 I2C communication

The camera, the ground sensors extension, the accelerometer (e-puck HWRev 1.3 only) and the gyro (e-puck HWRev 1.3 only) are connected to the I2C bus as slave devices (the microcontroller is the master).
The y command of the Advanced sercom protocol. can be used to read the registers values of these sensors.
For instance you can read the camera id with the following commands: y,220,0 and y,220,1 that return respectively 128=0x80 and 48=0x30 (id=8030). In the same way you can read any register with the general command y,220,REG_ADDR.
For the accelerometer you must use 60 as device address (y,60,REG_ADDR) and for the gyro you must use 212 (y,212,REG_ADDR).
The device address value to be used with the y is obtained by shifting by one position left the I2C 7-bit address of the device, for example the camera 7-bit address is 0x6E, by shifting one position left we get 0xDC=220.

1.5 Batteries

1.5.1 Battery from 2016 (last quarter) on

The new batteries of 2016 are bit heavier (38g) but a bit more powerful (1800 mAh). The look is similar to the previous batteries and they are of course compatible with the robot and the charger.
Take care when inserting the battery in the robot to not scratch the plastic sticker. You would need to apply a bit more force than before when inserting and removing the battery.
The battery is covered with a plastic protection in order to avoid any possible short circuit during inserting/removing of the battery.
The battery can be inserted only in one way: the side where the plastic protection do not cover completely the battery "top" must be towards the ground.
DO NOT REMOVE THE BLACK PLASTIC PROTECTION!

This battery doesn't fit perfectly in older chargers, but it can be inserted anyway in the charger in order to make a good contact and charge it; when the contact is ok you will see the led turned on.

1.5.2 Battery from 2013 to 2016

The new batteries of 2013 are lighter (33g) and a bit more powerful (1600 mAh). The look is different but they are of course compatible with the robot and the charger. Take care when inserting the battery in the robot to not scratch the plastic sticker. Is not a safety issue but keep them nice as in the beginning ;-).
The battery is covered with a plastic protection in order to avoid any possible short circuit during inserting/removing of the battery.
DO NOT REMOVE THE PLASTIC PROTECTION!

1.5.3 Battery up to 2012

The robots delivered in 2012 had a small difference regarding the battery; the type of battery is always the same but the mechanics of the positive pin is slightly different from one version to the other. The version with the black plastic cover comes out a bit more then the version with the brown cardboard cover.

The e-puck contact has been slightly modified to have a better contact with both versions as shown in the following figure; see the Contact-modification.pdf document to get more information on how to apply this modification.

The charger makes contact with both versions, as illustrated below.

The positive pin has the tendency to get a bit oxidated and might need to be scratched a bit for a perfect connection.

1.5.4 Charger circuit diagram

The circuit diagram of the e-puck charger is available on the following link charger-circuit-diagram.png.

2 Software

2.1 Getting started

The robot is shipped with a standard firmware that let you immediately interact with the robot, follow these steps:
1) put the robot selector in position 3
2) turn on the robot and pair it with the computer:

  • if you're running Linux use the system bluetooth manager to pair the robot with the computer and then issue the command sudo rfcomm bind /dev/rfcomm0 10:00:E8:C5:61:C9, where 10:00:E8:C5:61:C9 is the BT mac address of the robot
  • if you're running Windows there is a detailed guide from the e-puck.org tutorials, here is a direct link to the guide BTboot epuck gettingstarted (refer to chapter 2.3, page 6)

3) execute a terminal program (e.g. minicom for Linux or teraterm for Windows) and configure the connection with 115200-8N1. The serial device path should be typically something like "/dev/rfcomm0". Make sure that the flow control parameter of minicom called "Hardware" is set to "No"
4) type h+ENTER and you'll be prompted with a menu that contains all the commands you can issue to the robot, for instance you can retrieve the sensors values or turn on the leds

2.2 Library

The embedded software running on the e-puck is continuously extended and managed in the following git repo https://github.com/gctronic/e-puck-library. The repo comprises a complete library to work with all the sensors mounted on the e-puck and is the basis for many demos. You can download the library documentation form the following link e-puck-library.pdf.
The content of the repo is the following:

  • library: this is the low level library of the e-puck
  • program:
    • "Bluetooth mirror": interact with the Bluetooth chip through serial cable
    • "BTCom": basically it is the "asercom" implementation, refer to Advanced sercom protocol
    • EPFL demo project: some nice demos bundled in one project, such as sound source location, obstacle avoidance and color blob detection (red and green). Some of these demos are included in the GCtronic standard firmware.
    • GCtronic standard firmware project, refer to section Standard firmware
  • tool:
    • computer-side and e-puck side bootloader
    • matlab interface/monitor for e-puck
    • C++ interface/monitor for e-puck

In order to download a snapshot of the repo, go to the https://github.com/gctronic/e-puck-library page and then click on the green botton named Clone or download and select Download ZIP as shonw in the following figure.

2.2.1 Structure

As previously mentioned the git repository includes a library to which many demos are linked. Only updates to this library that will be useful to others people and/or correct errors should be commited; some demos of this wiki makes changes to the library for the solely purpose of running the demo and thus they aren't commited to the repo.
In order to separate the original e-puck library from what is modified in the library for the current demo, all the projects (created with MPLAB) share the same structure, that is they have to be placed within the program folder of the repository and must contain only the files of the library (and their dependencies) that have been modified. An example of this structure is shown afterwards:

  • e-puck-library
    • library
      • a_d
      • bluetooth
      • ...
    • program
      • project1
        • a_d
          • e_prox.c
      • project2
      • ...
    • tool

The library folder basically never change (unless bug fixes or new features for all users are developed). All the projects have a reference to this library folder in their build options.
If some library files are modified for the current project, they are inlcuded in the project folder following the same structure of the original library, as shown for project1.
In order to build the project you then need to add all the modified library files from the project directory and all the others files from the main library folder. Not all files are always needed, it depends on the features that are used; for instance if the camera isn't used, the related library file could be omitted from the project saving memory space.

2.3 Standard firmware

The robot is initially programmed with a firmware that includes many demos that could be started based on the selector position:

  • Selector position 0: Shock detection. Look at runaccelerometer.h for more information.
  • Selector position 1: Detect the sound source. Look at rundetectsound.h for more information.
  • Selector position 2: Follow the wall. Look at runwallfollow.h for more information.
  • Selector position 3: Advanced sercom protocol.
  • Selector positoin 4: Let the robot move in a square path (using either odometry or gyroscope).
  • Selector position 5: Sensor "feedback display".
  • Selector position 6: Camera points to light.
  • Selector position 7: Act like the ASL RS232 - I2C translator.
  • Selector position 8: Show the ground direction. Look at rungrounddirection.h for more information.
  • Selector position 9: Show the rotation rates of the gyroscope axes. Look at the rungyroscope.h for more information.
  • Selector position 10: This position is used to work with the gumstix extension.
  • Selector position 11: Bluetooth configuration (serial communication).
  • Selector position 12: Global test (serial communication).
  • Selector position 13: Uart1 to uart2 transponder.
  • Selector position 14: Follow what is detected by the two front proximities detectors. Look at runbreitenberg_adv.h for more information.
  • Selector position 15: Simple dust cleaner behaviour.

The pre-built fimrware is available from DemoGCtronic-complete.hex.
You can have a look at the source code from the following link https://github.com/gctronic/e-puck-library/tree/master/program/DemoGCtronic-complete; beware that the project is actually included in the e-puck library repository, refer to section Library to download it.

2.3.1 Project building

In order to build the project you need to install the MPLAB X IDE and related compiler, refer to section Programming: MPLAB X.
The standard firmware project is based on the e-puck library (refer to Library section).
To build the project follow these steps:
1) download and extract the e-puck library repository (refer to section Library), let say in the folder e-puck-library; you should have the following situation:

  • e-puck-library
    • library
    • program
      • ...
      • DemoGCtronic-complete
    • tool

2) Open MPLAB X, then click File=>Open Project and select the project file demoGCtronic.X you can find in e-puck-library\program\DemoGCtronic-complete. If you're asked to upgrade the project to the current IDE version, click yes to confirm.
3) Right click on the project name (on the left panel) and select Properties as shown in the following figure:

4) Select the XC16 compiler from the Compiler Toolchain section and then click OK as shown in the following figure:

5) Open the project properties once more (right click on project name and then select Properites), a new configuration will be available for the XC16 compiler. On the left panel select xc16-gcc, then on the right specify Memory model and verify that the Code model is set to Large. Confirm with OK as shown in the following figure:

6) Now you can build the project by clicking on the Build project button (hammer icon on the top) or by pressing F11; if all is working you should end up with a successfully built firmware as shown in the following figure:

2.4 Programming

2.4.1 MPLAB X

If you are interested in development of embedded applications, you should firstly choose an adequate development environment. One of the most known IDE is the MPLAB Integrated Development Environment that you could download for free from the Microchip site; Microchip offers also the C compiler for free. One big advantage of this IDE is that it is multiplatform (Windows, Linux, Mac) and also the compiler is available for each platform.
To work with the e-puck software you need to:

  • download and install the MPLAB X IDE; during installation select also MPLAB IPE to be installed, it is a nice utility to have
  • download and install the compiler, it must be the MPLAB XC16 (supports all 16-bit PIC MCUs and dsPICs)

Useful information related to the compiler can be found in the MPLAB XC16 C compiler user's guide.

2.4.2 Aseba

Aseba is a set of tools which allow novices to program robots easily and efficiently, refere to https://www.thymio.org/en:start for more information.
Here is the page with the basic information needed to start working with Aseba and the e-puck robot https://www.thymio.org/en:e-puck.
You can download an MPLAB X project based on the git repo https://github.com/aseba-community/aseba-target-epuck in the following link aseba.zip; place it in the "e-puck-library/program" folder (refer to section https://www.gctronic.com/doc/index.php/E-Puck#Library for more information on how to build).
You can download the last aseba firmware for the e-puck from the following link aseba-target-epuck.hex.
Beware that at the moment the only bootloader capable of uploading the aseba-target-epuck.hex to the robot is the Linux version.

2.4.3 Python

Python is a widely used programming language supported by a large and comprehensive standard library. A Python library is available enabling the remote control of the e-puck robot, read the sensors values, control the motors while running the heavy processes on a computer. You can start playing with the e-puck and Python by downloading the e-puck python package, it contains:

Follow these steps to install Python and run your first Python example (this instructions are for Windows but the procedure should be similar also for Linux and Mac OS):

  1. Install Python (the executable python-2.6.6.msi is in the Python2.6 directory)
  2. Install the Python setup tools by running the script ez_setup.py you find in the Python2.6 directory:
    1. issue the command python ez_setup.py in a terminal
    2. alternatively you can download an IDE that will help you in programming, run and debug your code; a valid IDE is called PyCharm
  3. Install e-puck Python library dependencies:
    1. install pybluez by issueing the command python setup.py install in a terminal (be sure to be in the dependencies\pybluez-master directory)
    2. install the PIL library by executing PIL-1.1.7.win32-py2.6.exe you find in the dependencies directory
  4. Program the e-puck with the last standard firmware and put the selector in position 3
  5. Configure the Bluetooth connection with the e-puck in the computer (add Bluetooth device and insert its pin)
    1. when you add the e-puck robot as Bluetooth device, right click on the device and choose property; in the "Bluetooth" tab you'll find the mac address (something like 10:00:e8:c5:61:c9). Copy this address since you'll need it to connect to the robot when running the Python scripts
  6. In the examples directory you'll find the e-puck library ePuck.py and 3 examples braitenberg.py, line_follower.py, photo_taker.py
    1. the ePuck.py file must be placed in the same directory as your script
    2. to run an example issue the command python script_name.py mac_address, where script_name is either braitenberg or line_follower or photo_taker and mac_address is the address that you previously annotate (e.g. 10:00:e8:c5:61:c9)

2.5 PC interface

An interface running on a computer and connecting to the e-puck through bluetooth based on the advanced sercom protocol (selector 3) was developed; from this interface it's possible to have information about all the sensors, receive camera images and control the leds and motors. The source code is available from the following links:


Since the last version comprises a basic OpenGL representation of the e-puck you will need also the OpenGL extension libraries in order to compile the project; these should be included in the Qt SDK, but if you encounter problems refers to https://doc.trolltech.com/4.6/qtopengl.html#details; basically you need to download manually the OpenGL libraries: GLX (Linux), CGL (MacOS), WGL (Windows).
Once the project is built dynamically, some errors about missing dll may be thrown; one of these missing libraries could be the mingwm10.dll. Others could be related to Qt. To solve the problem you need either to build the project statically, or to register the libraries on the system, or to manually include all the dll with the executable.

2.6 Connecting to multiple robots

A Python example is available for e-puck2 in the following section PC side development: Connecting to multiple robots. This example is compatible also with the e-puck1 robot.

2.7 Examples

2.7.1 Basic demos

The following set of simple programs for the e-puck has an increasing degree of complexity, from very basic LED blinking up to motor control depending on sensor input; it's a good starting point for beginner users. The first demos do not use interrupts and keep to a minimum the use of the library. You can download the set of these demos from this link BasicDemos.zip.
A list of these basic programs is listed below:

  • demo0: very simple LEDs blinking
  • demo1: LEDs blinking (pause with timer)
  • demo2: selector reading + LEDs
  • demo3: send selector position via Bluetooth (simplified method)
  • demo4: proximity reading with interrupts + LEDs
  • demo5: proximity reading with interrupts + LEDs + send values via BT (assembler version with interrupt and buffer)
  • demo6: motor speed controlled depending on front proximity sensor values

Compilation: the demos can be edited and compiled using MPLAB IDE (windows), clicking directly on the project file. The demos should be compiled with MPLAB-C30 on all operating systems. The compiled .hex file is downloaded to the e-puck robot via Bluetooth using for example tinyBootloader.

2.7.2 Audio recording

This demo program (hex file, MPLAB project) let the e-puck recording for about two seconds whatever you like and then reproduces it infinitely.
The program starts with a led animation (flow) and then turns all leds on for about two seconds, this is the moment for recording; note that only the right micro (mic0) is used.
It's possible also to choose the volume/amplification of the reproduction using the selector (from 1 to 16).

2.7.3 Still images

This demo program is optimized to let the robot handle images with resolution up to 640x480 pixels (the maximum reachable by the camera); after acquisition, the robot sends the images to a computer through bluetooth. This zip ImageReceiverBT.zip contains both the program for the robot (hex file) and the application for the computer (Windows platform). The selector of the robot must be in position 3.
You can find the sources for the application running on the computer side from this link ImageReceiverBTsrc.rar.
You can find the MPLAB project for the application running on the robot from this link DemoGCtronic-vga-images.zip.

2.7.4 Robots Collective Behavior

This is a Bachelor project developed by Jean-Roch Lauper at the University of Fribourg. The project's focus is on collective behaviors as well as on the use of sound to communicate between robots; moreover there are demos to interact with the robot through sensors and play with sound.
The code is available on Github. Demo videos are available on Youtube.


2.8 Bootloader

2.9 Others tools

From the official e-puck site you can find information about others software tools available for the e-puck robot in the following link https://www.e-puck.org/index.php?option=com_content&view=article&id=18&Itemid=24.

2.9.1 Local communication

An example of such tools is the libIrcom, a local communication library exploiting the proximity sensors placed around the robot to modulate infrareds.
If an higher throughput and longer communication distance are required, there is the range and bearing extension designed for this purpose.

3 ROS

This chapter explains how to use ROS with the e-puck robots; basically all the sensors are exposed to ROS and you can also send commands back to the robot through ROS. Both Pyhton and cpp versions are implemented to give the user the possibility to choose its preferred programming language. Here is a general schema:
Click to enlarge

First of all you need to install and configure ROS, refer to https://wiki.ros.org/Distributions for more informations. Alternatively you can download directly a virtual machine pre-installed with everything you need, refer to section virtual machine; this is the preferred way.

  • This tutorial is based on ROS Hydro.
  • If you downloaded the pre-installed VM you can go directly to section Running the ROS node.

The ROS epuck driver was initially developed by the Verlab Laboratory at Universidade Federal de Minas Gerais, the related code can be found in the following repository https://github.com/verlab-ros-pkg/epuck_driver. It is based on rospy (Python). We extended the initial driver to support all the e-puck sensors, the code can be found in the following repository https://github.com/gctronic/epuck_driver.
Starting from the work done with the ROS epuck driver for python, we developed another ROS node based on roscpp that has the same functionalities; the code can be found in the following repository https://github.com/gctronic/epuck_driver_cpp.

3.1 Initial configuration

The following steps need to be done only once after installing ROS:

1. If not already done, create a catkin workspace, refer to https://wiki.ros.org/catkin/Tutorials/create_a_workspace. Basically you need to issue the following commands:
  mkdir -p ~/catkin_ws/src
  cd ~/catkin_ws/src
  catkin_init_workspace
  cd ~/catkin_ws/
  catkin_make
  source devel/setup.bash 
2. You will need to add the line source ~/catkin_ws/devel/setup.bash to your .bashrc in order to automatically have access to the ROS commands when the system is started
3. Clone the ROS epuck driver repo:
4. Copy the repo directory epuck_driver or epuck_driver_cpp (this is the actual ros package) inside the catkin workspace source folder (~/catkin_ws/src)
5. Install the dependencies:
  • Python:
    • The ROS epuck driver is based on the e-puck Python library that requires some dependencies:
      • install the Python setup tools: sudo apt-get install python-setuptools
      • install the Python image library: sudo apt-get install python-imaging
      • install pybluez:
        • download pybluez and extract it
        • install pybluez dependencies: sudo apt-get install libbluetooth-dev
        • go to the pybluez directory and issue the command python setup.py install
  • cpp:
    • install the library used to communicate with Bluetooth: sudo apt-get install libbluetooth-dev
6. Open a terminal and go to the catkin workspace directory (~/catkin_ws) and issue the command catkin_make, there shouldn't be errors
7. Program the e-puck with the last standard firmware and put the selector in position 3

3.2 Running the ROS node

First of all get the last version of the ROS epuck driver from github:

Finally build the driver by opening a terminal and issueing the command catkin_make from within the catkin workspace directory (e.g. ~/catkin_ws).

If you're using Pyhton make sure the node is marked as executable by opening a terminal and issueing the following command from within the catkin workspace directory (e.g. ~/catkin_ws): chmod +x ./src/epuck_driver/scripts/epuck_driver.py.

Now you can finally start the ROS node, for this purposes there are two launch scripts (based on roslaunch), one for working with a single robot and the other to work with multiple robots. Before actually starting the node you need to configure the e-puck robot as Bluetooth device in the system and copy its mac address (this will be needed when launching the ROS node); if you want to work with multiple robots you need to add all of them as Bluetooth devices in the system and copy all the mac addresses. The procedure to add a Bluetooth device is:

  1. Go to System Settings (left panel has a link)
  2. Click on Bluetooth
  3. Click on the + sign in the bottom left of the window to start the procedure
  4. Turn on the robot and click continue, now the search is started and after a little while the robot should appear on the list of found devices
  5. Click on PIN Options..., select Cutom PIN, enter the correct robot PIN (robot id) and click Close
  6. Now click Continue and the robot will be paired
  7. To know the mac address of a paired robot, go to System Settings, Bluetooth and select the robot; once selected you'll see in the right side the related mac address

The ROS e-puck driver based on roscpp has the possibility to automatically search for the robots, so you don't need to specify the mac address but you need to pass only the robot id; pay attention that you still need to pair the robot to the computer as explained in the previous steps. Anyway is recommended to specify the mac address to speed up and facilitate the connection (especially with multiple robots).

First thing to do before launching the script file is running the roscore, open another terminal tab and issue the command roscore.

3.2.1 Single robot

Open a terminal and issue the following command:

  • Python: roslaunch epuck_driver epuck_controller.launch epuck_address:='10:00:E8:C5:61:C9'.
  • cpp: roslaunch epuck_driver_cpp epuck_controller.launch epuck_id:='3000' epuck_address:='10:00:E8:C5:61:C9'.

10:00:E8:C5:61:C9 is the e-puck Bluetooth mac address and 3000 is the e-puck id (number on the case).

If all is going well you'll see the robot make a blink meaning it is connected and ready to exchange data (the blink is done only when using the Python ROS driver) and rviz will be opened showing the informations gathered from the topics published by the epuck driver node. The following graph shows all the topics published by the epuck driver node (Pyhton):
Click to enlarge (Python) Click to enlarge

Cpp ROS driver
The cpp ROS driver launch script is configured also to run the gmapping (SLAM) node that let the robot construct a map of the environment; the map is visualized in real-time directly in the rviz window. Here is a video:

3.2.2 Multiple robots

The script is designed to work with 4 e-puck robots and you need to modify the script in order to use the correct Bluetooth mac addresses:

  • open the file ~/catkin_ws/src/epuck_driver/launch/multi_epuck.launch (Python) or ~/catkin_ws/src/epuck_driver_cpp/launch/multi_epuck.launch (cpp)
  • on top of the file you'll see a list of 4 e-puck addresses, change their values accordingly

Now you can start the node by issueing the following command in a terminal:

  • Python: roslaunch epuck_driver multi_epuck.launch
  • cpp: roslaunch epuck_driver_cpp multi_epuck.launch

If all is going well you'll see the robots make a blink meaning they are connected and ready to exchange data (the blink is done only when using the Python ROS driver) and rviz will be opened showing the proximity and odometry of all the 4 robots; it is assumed that the robots are placed in a square (each robot in each corner) of 20 cm.

In order to move the robots you can either use a TV remote or you can directly use ROS by publishing velocities commands by issueing the following command:
rostopic pub -1 /epuck_robot_0/mobile_base/cmd_vel geometry_msgs/Twist -- '[4.0, 0.0, 0.0]' '[0.0, 0.0, 0.0]'

  • this command will move the first e-puck with a linear velocity of 1 rotation per second (robot moves straight)
  • only the x component of the linear velocity and the z component of the angular velocity are used
  • for more information on the Twist message refer to https://docs.ros.org/api/geometry_msgs/html/msg/Twist.html

Click to enlarge

3.2.3 Visualize the camera image

In order to visualize the image through ROS you need to use the launch script for a single robot with an additional parameter cam_en as follows:

  • Python: roslaunch epuck_driver epuck_controller.launch epuck_address:='10:00:E8:C5:61:C9' cam_en:='true'
  • cpp: roslaunch epuck_driver_cpp epuck_controller.launch epuck_id:='3000' epuck_address:='10:00:E8:C5:61:C9' cam_en:='true'

Then with the Python ROS driver you need to open another terminal and issue the command rosrun image_view image_view image:=/camera that will open a window wiht the e-puck camera image.
With the cpp ROS driver the image is visualized directly in the rviz window (on the right), as shown in the following image:

Click to enlarge

3.3 Virtual machine

To avoid the tedious work of installing and configuring all the system we provide a virtual machine which includes all the system requirements you need to start playing with ROS and e-puck. You can download the image as open virtualization format from the following link ROS-Hydro-12.04.ova (based on the VM from https://nootrix.com/2014/04/virtualized-ros-hydro/); you can then use VirtualBox (together with the VirtualBox Extension Pack) to import the file and automatically create the virtual machine. Some details about the system:

  • user: gctronic, pw: gctronic
  • Ubuntu 12.04.4 LTS (32 bits)
  • ROS Hydro installed
  • PyCharm: Python IDE used to extend the rospy e-puck driver; when you open the IDE it will open a project pointing to the ROS e-puck driver so you can immediately start diving into the code
  • Webots 8.0.5 is installed (last version available for 32 bits linux)
  • git-cola (git interface) is installed
  • the catkin workspace is placed in the desktop

If you encounter problems related to network adapters not recognized when booting the imported virtual machine then you need to follow these steps:

  1. close VirtualBox
  2. go to the directory C:\Users\YOUR_USER\VirtualBox VMs\ROS Hydro - 12.04
  3. open the file ROS Hydro - 12.04.vbox with a text editor, remove all the content of the <Network tag and save
  4. open VirtualBox, select "ROS Hydro - 12.04" and under settings enable the network card (if you need it)
  5. start the virtual machine

3.4 Webots

The Webots simulator integrates a ROS controller that publishes the sensor data of the e-puck robot in ROS, then we can exploit the multitude of packages available in ROS to process the sensors data and simulate the behavior of the e-puck by issueing commands through ROS.
Once we're satisfied with the results in the simulator, we can test our algorithms in the real world by remote controlling the e-puck through Webots.
The following steps shows how to run the example included in Webots that let the e-puck follow a line using ROS:

  1. Install the last version of Webots following the instructions; pay attention that starting from Webots 8.1.0 the support to linux 32 bit was dropped. The following instructions are based on Webots 8.2.1 and Ubuntu 14.0.4 64 bits (you can download a pre-installed virtual machine with ROS and Ubuntu from https://nootrix.com/downloads/#RosVM.
  2. Create a catkin workspace as explained in section Initial configuration if you didn't already done
  3. Copy the directory nodes from WEBOTS_MODULES_PATH/projects/languages/ros/ (e.g. /home/viki/.local/share/Cyberbotics/Webots/8.2/projects/languages/ros/) to the catkin workspace source folder (e.g. ~/catkin_ws/src)
  4. Copy the directory srv from WEBOTS_MODULES_PATH/projects/default/controllers/ros/include (e.g. /home/viki/.local/share/Cyberbotics/Webots/8.2/projects/default/controllers/ros/include) to the nodes package just copied (e.g. ~/catkin_ws/src/nodes)
  5. Open a terminal and go to the catkin workspace directory (~/catkin_ws) and issue the command catkin_make
  6. Open another terminal and start ROS by typing roscore
  7. Start Webots and open the ROS e-puck example: File => Open Sample World => languages => ros => e-puck_line.wbt and play it
  8. Now from the terminal positioned to the catkin workspace issue the command rosrun nodes e-puck_line 60, where 60 is the duration in seconds; you should see the e-puck follow the line in the simulator

For more information have a look at the Readme you can find in WEBOTS_MODULES_PATH/projects/languages/ros/nodes (e.g. /home/viki/.local/share/Cyberbotics/Webots/8.2/projects/languages/ros/nodes) or refer to the Webots user guide chapter Using ROS.
The EDU license is valid to play with Webots and ROS (PRO license not required).

3.4.1 Webots ROS SLAM with e-puck

This example shows how to use the gmapping (SLAM) package of ROS to let the e-puck robot construct a map of the simulated environment; the map is visualized in real-time directly in the rviz window. Here are the steps to run the demo:

  1. download the code from the following link webots-ros-slam.zip and extract the zip
  2. copy the source file nodes/src/e-puck_line_slam.cpp to the catkin workspace folder of the Webots nodes (e.g. ~/catkin_ws/src/nodes/src)
  3. copy the folders nodes/config, nodes/launch and nodes/urdf to the catkin workspace folder of the Webots nodes (e.g. ~/catkin_ws/src/nodes/)
  4. copy the files nodes/CMakeLists.txt and package.xml to the catkin workspace folder of the Webots nodes (e.g. ~/catkin_ws/src/nodes/) by substituting the current ones
  5. Open a terminal and go to the catkin workspace directory (~/catkin_ws) and issue the command catkin_make
  6. Open another terminal and start ROS by typing roscore
  7. Start Webots and open worlds/e-puck_line_slam.wbt: File => Open World => look for the directory containing e-puck_line_slam.wbt and play it
  8. Now from the terminal positioned to the catkin workspace issue the command roslaunch nodes epuck_controller.launch

Here is a video:

3.4.2 Webots ROS and OpenCV with e-puck

This example shows how to integrate OpenCV with ROS to let the e-puck robot detect and follow a ball in the simulated environment. Here are the steps to run the demo:

  1. download the code from the following link webots-ros-opencv.zip and extract the zip
  2. copy the source file nodes/src/e-puck_opencv.cpp to the catkin workspace folder of the Webots nodes (e.g. ~/catkin_ws/src/nodes/src)
  3. copy the files nodes/CMakeLists.txt and package.xml to the catkin workspace folder of the Webots nodes (e.g. ~/catkin_ws/src/nodes/) by substituting the current ones
  4. Open a terminal and go to the catkin workspace directory (~/catkin_ws) and issue the command catkin_make
  5. Open another terminal and start ROS by typing roscore
  6. Start Webots and open worlds/e-puck_opencv.wbt: File => Open World => look for the directory containing e-puck_opencv.wbt and play it
  7. Now from the terminal positioned to the catkin workspace issue the command rosrun nodes e-puck_opencv 20 140 0 0 150 255 255, where
  • 20 is the duration in seconds
  • 140, 0, 0 are the min H, S and V respectively of the blob to detect
  • 150, 255, 255 are the max H, S and V respectively of the blob to detect

3.5 E-puck gumstix extension

For more information on how to use ROS with the e-puck gumstix extension refer to section https://www.gctronic.com/doc/index.php/Overo_Extension#ROS.

4 Test and Results

4.1 Bluetooth Communication Testing - PC to robot

Some tests were performed in order to analyze the bluetooth speed between a computer and the e-puck; the following three experiments were executed sending the same total amount of data but differently subdivided:

  • 19200 packets of 6 bytes each sent from computer to e-puck: about 65 seconds (BTspeed.zip)
  • 2560 packets of 45 bytes each sent from computer to e-puck: about 20 seconds (BTspeedPackets.zip)
  • 1 packet of 115200 bytes sent from computer to e-puck: about 10 seconds (BTspeedFile.zip)

Explanation: dividing a packet in small chunk of data (such as a single command) introduces pauses generated by the Bluetooth device of the PC. The mean measured delay time between a packet and the other is about 3 ms, but could be as high as 20 ms. Sending the packet in one single block like in the third experiment, has no pauses and thus needs exactly the theoretical time of 10 seconds for the channel at 115'200 Baud.

4.2 Bluetooth Communication Testing - robot to robot

Some tests were performed also to analyze the maximum speed reachable between two robots using direct communication, that is one acting as the master and the other as the slave. The Bluetooth 2.0 specification asserts 1 Mbit/s air data rate, but in practice with the Bluetooth protocol overhead the usable bandwidth is lower; moreover in our case there are others two facts to take in consideration:

  1. the communication between the robot and the BT chip is configured to be at 115200 bps
  2. the buffer handling system of the BT chip is capable of receive at maximum 200 packets per second (refers to UART buffer AN.pdf)

From the tests the resulting throughput is 18 Kb/s, sending a total of 41000 bytes with 41 bytes for each packet and waiting the response from the chip before sending the next packet; moving the slave device several meters away from the master influences the communication speed, that slows down.
The sources (MPLAB project) of the firmware used for this test can be downloaded from the following link DemoGCtronic-BT.zip (master=selector position 9, slave=selector position 4).

There is an additional example that shows how to establish a direct Bluetooth link between two e-pucks. This firmware is intended to be programmed on the master robot (selector 0); the master will send commands using the "asercom protocol" to a slave robot, that is the first robot found during the search, in order to turn on its leds in sequence. The slave robot is intended to be programmed with the standard firmware (selector position 3).
You can download the MPLAB X project from here DemoGCtronic-BT-asercom.zip; in order to build refer to section Project_building. The Bluetooth library was extended to build this demo, you can download it from here bluetooth.zip; this library must replace the one included in the e-puck library in order to build the project.
There are various modes available on this demo, depending on the selector position:

  • 0: search for an e-puck1 or e-puck2 and connect to the first one found, then send some commands to it through the advanced sercom protocol
  • 1: receiver mode (template)
  • 2: connect directly to an e-puck1 (no search is accomplished) and then send some commands to it
  • 3: connect directly to an e-puck2 (no search is accomplished) and then send some commands to it

4.3 e-puck balancing

The users can transform the e-puck in a self balancing robot by applying some mechanical modifications as shown in the following figure. Here are the 3d models of the wheel tyre extension and spacer. For more information on the assembly please contact us.
Click to enlarge

Here is a video of the e-puck trying to self balance; this is only a starting point to demonstrate the feasiblity, so you can take the code (MPLAB X project) and improve it.

4.4 e-puck and Arduino

The Arduino boards are used widely in the hobby community and you can extend the functionalities of a board by using the so called shields; there are tons of shields like WiFi, SD reader/writer, battery, XBee, GSM, speech recognition, rfid, ... there is a shield for everything (almost). For these reasons we decided to connect an Arduino to the e-puck robot.
I2C is used to communicate between the e-puck (master) and the Arduino (slave), this is the easiest way to get both a communication channel and the power from the e-puck thanks to an already available connector on the robot. The connector is placed on the bottom side of the e-puck main pcb as shown in the following figures:
Click to enlarge Click to enlarge
The following figure shows the schema to connect the e-puck to the Arduino Uno board; you can follow the same schema to connect to other Arduino boards paying attention to the related pinout.
Power and voltage considerations: in this configuration, the e-puck battery (LiPo 3.7Volt) powers directly also the Arduino board to its 5 Volt line. This is ok for the tested demos but it might be limiting in some rare cases. Let us know your goals and experiments to get support. The I2C lines are simply protected with 2 series resistors in order to limit any excessive current into the PIC.
Click to enlarge
Here is a video of a demo in which you can control the e-puck with your voice; the e-puck is connected to an Arduino Uno that is extended with an Easy VR shield for speech recognition.

The source code of the demo is available in the following links: MPLAB project for the e-puck, Arduino IDE (1.6.6) project for the Arduino Uno board (you'll need the Easy VR Arduino library to build the project).
A test project that works without any shield is available in the following link Arduino IDE (1.6.6) test project, this demo rotates continuously the robot right and left. It works with the same robot firmware as the previous demo.
We designed a support in order to mechanically attaching the Arduino board on top of the e-puck robot as shown in the following figure.
Click to enlarge
Here is the support 3D model that you can print with your 3d printer. Alternatively you can purchase an "e-puck arduino set" from the shop.

5 Known problems

5.1 Re-flashing the bootloader on e-puck

In some cases it was reported that the internal bootloader on e-puck was corrupted due to a malfunction of the last code upload.
In those cases the bootloader (DemoGCtronic-complete-4bba145+bootloader.hex) has to be re-flashed on the robot via cable (see figure) with ICD2 or ICD3 and MPLAB IDE or compatible HW and SW.
See the procedure (Instruction re-program bootloader.pdf) and in case of need contact info[at]gctronic.com.

5.2 Uncorrect/unknown bluetooth PIN code

In a couple of rare cases it was reported that the PIN code of the Bluetooth chip was not anymore the usual one (same as e-puck number). It seems that the issue is linked to trials of robot to robot direct communication. One robot could have picked up the PIN of the other one, so you could try that PIN to get access to the robot. Another possibility is to try the default pin number 0000.
In order to restore the name and pin number of the robot you can either make a program specifically for this purpose (1) or use the standard firmware but you would need the serial cable (2):

  1. the e-puck library contains the functions to interact with the BT chip and change all its configurations including pin number and friendly name; for a code example refer to the example DemoBTConfiguration.zip, that simply rewrite the pin and friendly name (change only the pin number in the code, the friendly name will be changed accordingly). Another source of insipiration is the Standard_firmware, the part of the code related to selector 11. In case the chip isn't responding be sure it is in command mode (use the function e_bt_exit_tranparent_mode).
  2. program the robot with the Standard_firmware and put the selector in position 11. Connect the serial cable to the robot as shown in section Serial_communication and to the computer (you would need an USB to serial adapter); open the port using this configuration 115200n8. Once the communication channel is opened type the command H+enter to get the help. You can get the serial cable from the shop.

5.3 Battery isolation (for battery up to 2012)

You should be careful when inserting and removing the battery of the e-puck in the robot or in the charger. Otherwise in the long run your battery will eventually lose its front isolator (plastic of cardboard), causing a possible short circuit. If you are already in this situation, you could try placing some isolation tape on the battery, as illustrated in the following figure. The correct procedure to insert and remove the batteries can be found in the following document Change-batteries.pdf. Basically you need to fully push in the battery compressing the springs before tilting the battery in the final position.

5.4 Bluetooth and MacBook

Some users experienced problems in connecting to the robot via Bluetooth using MacBook; using an usb BT dongle solved the problem most of the time. Some users instead experienced distance problems with the internal BT chip of the MacBook, that is the robot should be kept within 1.5 meters otherwise the connection is lost/slows down.

5.5 Memory protection

The dsPIC processor has the possibility to protect the program memory at various levels through the configuration bits; in principle these protections can be eliminated erasing completely the memory, anyway in some cases it was reported that this procedure fails, leading to a situation in which the "memory protection" still blocks and the robot cannot be programmed anymore. Thus it is advisable to avoid playing with code protection unless strictly necessary.
In principle the procedure to reset the configuration bits eliminating the protection is:

  1. Open the MPLAB project and connect the programming cable to the robot
  2. Select "Programmer => Select Programmer => MPLAB ICD3"
  3. Select "Programmer => Settings": in the "Program Memory" tab select "Manually select memories and ranges" and check all options, click also on full program memory range
  4. In the "Power" tab set the voltage to 5.5 V and check the option "Power target circuit from MPLAB ICD 3"
  5. Select "Programmer => Erase Flash Device"; erase should give no errors
  6. Power cycle the robot (unplug and plug again the programming cable); now the configuration bits are reset and program memory is cleared completely; it's possible to upload a new program selecting "Programmer => Program"

Note that this procedure works only with the ICD3 that is capable of supplying 5V to the processor.

5.6 Proximity noise

It was noticed that the proximity 0 and proximity 7 are subject to noise, in particular the value returned from these two sensors can vary up to 30 (the variation of the others is in the range of 2-3). This noise is coming from the camera clock, thus as a workaround the camera can be turned off if this noise causes problems.

5.7 ICD2 programmer

The Microchip ICD2 programmer P/N 10-00319 isn't supported on 64-bit OS.

5.8 Upload failed

If the robot was programmed with a firmware in which the Bluetooth is used to write continuously data to the computer, then you can experience problems in uploading a new firmware to the robot. To solve the problem you should try resetting the robot continuously during the connection to the robot when you are uploading a new firmware, basically you should reset the robot (press and release the button continuously) until the connection led turn on, then stop resetting; with a bit of luck you should be able to upload it.

5.9 Speed precision at very low speed

The e-puck motors are step motors. To save energy, the motor phases/steps at low speed are not energized all the time but just partially. This might affect the speed precision at speed below 200. If one has specific needs at that low speed and want the single steps to be more energetic, then the TRESHV and MAXV constants in the file \motor_led\advance_one_timer\e_motors.c within the e-puck library need to be adapted (decrease their value). Alternatively the power save feature can be completely disabled by commenting the POWERSAVE constant.

5.10 Mail archive

You can have a look at a mail archive (February 2007 - December 2016) regarding the e-puck robot from the following link https://www.mail-archive.com/e-puck-user@gna.org/index.html. In this archive you can find problems encountered by users and related solutions.

5.11 Bluetooth slowdown in Ubuntu

If you experience a slowdown using the Bluetooth in Ubuntu try removing the package modemmanager with the following command: sudo apt-get remove modemmanager

6 Links

https://www.e-puck.org/
https://www.cyberbotics.com/doc/guide/epuck
https://mobots.epfl.ch/e-puck.html
https://github.com/gctronic/e-puck-library
https://en.wikipedia.org/wiki/E-puck_mobile_robot

7 Videos