Hi all! http://piro.patrickaalto.com/Piro2Small.jpg Some of you may remember my original Piro robot from 2015 (https://www.raspberrypi.org/forums/viewtopic.php?f=37&t=118716). Sadly I had to abandon that robot when moving to a new apartment. However, since summer of 2016 I have been working on a new...

Hi! Sorry to hear about your trouble.. I am using MPU6050 via I2C connection together with two DC motors (ZnDiy-BRY 12V 400rpm gear motor), and I have not had any problems with the I2C bus. I did solder capacitors to the motor poles when I got the motors, but have not done anything else for the pote...

In case you are interested in following my Piro project, here is the latest video I just uploaded: https://youtu.be/ZyPCkt7Go4s I have still mainly been working on the balancing routine, but I was asked the demonstrate my robot project at work a week and a half ago, so I spent some time adding some ...

I'll continue experimenting, with upping the hardware clock I would get more steps, and if I add some low frequency software PWM to the mix, perhaps that would give sufficient resolution. I'll let you know what I eventually come up with, if you are interested. Pate Just an update to my previous que...

Thanks for the quick reply and ideas, joan! I'll continue experimenting, with upping the hardware clock I would get more steps, and if I add some low frequency software PWM to the mix, perhaps that would give sufficient resolution. I'll let you know what I eventually come up with, if you are interes...

Hello joan! First, big thanks for creating pigpio and making it available! I have been using it in my Piro robot project, and have found it to be very straightforward to use. I am using it to drive the PWM signals to the L298N motor controller driving two DC motors, using 6 GPIOs. I plan to also add...

Hi Mark! Your PiBBOT (http://ozzmaker.com/2013/04/18/success-with-a-balancing-robot-using-a-raspberry-pi/) page has been pretty much my best reference when working on my Piro, thanks for your good description about filters and step by step guide about the PID algorithm! Those have been a great help ...

Hi all! Introducing my Piro robot, using a Raspberry Pi 2 as its CPU. I have always been interested in robotics, but only recently when I got a Raspberry Pi 2 (originally for testing my rpix86 on it) I finally decided to actually build a robot myself. I am more interested in the software side of rob...

Ok, thanks for the video! I hadn't realized you run rpix86 within the X environment. Can you check whether the mouse works when running from the console shell prompt? I believe those two run environments have different mouse emulation, so it is possible that the mouse works better when running rpix8...

Hello Orotomo, welcome to the forum! I think I understand your description of the problem, however, it looks like I would need to take a look at the game itself to be able to figure out what goes wrong. I don't have that game myself, and it seems not to be freely downloadable, so I am not able to he...

Hello bigrip, welcome to the forum! Can you run ls -al commands in your /dev/input and /dev/input/by-id folders, and then copy the result here? I don't need the actual files (and they are virtual files so you could not copy them anyways), I just need to see the names of the files. This might give me...

@Paeryn: Thanks, it looks like I have completely missed that 8-byte alignment part of the AAPCS! Very embarrassing... Or perhaps I have just forgotten all about it as it has not bitten me until now? Anyways, I'll be sure to remember it from now on. :oops: @PeterO: Yes, you are correct that I should ...

Yay, that 8-byte stack alignment was my problem! Result after fixing the stack alignment before the call: 0x427b30c7 DBE3 TOP=0, sw=0000, 0=1.000000, 1=2.000000, 2=3.000000, 3=4.000000 So, it turned out that my question was not that much C/C++ -related after all, it was caused by an ASM/C interopera...

This is the objdump result of the log_fpu_c() routine (when giving the literal parameters 1.0, 2.0, 3.0 and 4.0). I added some of my own comments in parentheses. I don't see anything wrong in this call, the doubles are pushed at sp+8, sp+16 etc: 000035b8 <log_fpu_c>: 35b8: e92d4030 push {r4, r5, lr}...

Hi Raj, welcome to the forum! Sorry, those errors are something that I need to fix. I'll see about adding support for that DSP command in the next version. If you still have the sources for your software, perhaps you could check all the SB DSP commands you used and let me know, so I can make sure I ...

Hi! I am having a weird problem in my rpix86 debugging routine.. I can't seem to print double (or float) variables using printf. I can't seem to figure out what i am doing wrong, perhaps you can help? My printf call is currently like this (I hardcoded the values after I could not figure out what is ...

@ti84: Sorry, I don't think I have anything better to share than my http://rpix86.patrickaalto.com/gles_video.c example.. It has the VSync synchronization in the last routine. That eglSwapBuffers call forces the framerate to 60Hz. void gles_draw(uint16_t *pixels) { gles2_Draw(screen_width, screen_he...

@ti84: Sorry for the much delayed reply! Yes, the system I use is to have a palette texture (1x256 pixels) and then the actual screen texture (with the texture bytes used as index to the palette texture), with the OpenGL fragment shaders handling the palette texture lookup. For double buffering I us...

Sorry, but rpix86 does not support .SYS files (or CONFIG.SYS contents in general) at the moment. It does not emulate a proper PC startup/boot sequence, it starts with an inbuilt DOS environment, it just uses 4DOS.COM as a command shell. It has been my long term plan to enhance my emulation to create...