Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [c]

A programming language commonly used for controlling robotic devices

-1
votes
1answer
20 views

time to Initialise or start sensor after power given [closed]

I am working on a time critical project. I use an optical sensor. I would like to know the initialisation or boot time the sensor after power given which will be in µS. How could I measure that?
1
vote
2answers
102 views

Problem with tuning PID for motor

I am trying to tune my PID to make my motor have a consistent output: input(pidOutput) => 100rpm I used the following step to tune my PID: Set all gains to zero. Increase the P gain until ...
2
votes
1answer
112 views

IRobot 690 - raw wheel encoder counts change with no movement command issued

I am using a Raspberry Pi 3, B+ pertinent libraries are WiringPi, with WiringSerial. Code is written in c. EDIT: the Serial connection is handled through GPIO 14(Tx) & 15(Rx), 5v (Tx) is stepped ...
1
vote
1answer
46 views

How can I run Tests/Simulations of Control and Motion Planning for a Bare Metal Robot?

I am using a raspberry pi to practice low level development with a differential drive robot; bare metal without an OS underneath. I've gotten to the point where I have a very small, single purpose ...
0
votes
0answers
31 views

RobotC check if in actual competition

I am writing a Vex Robotics program. Right now, in my main task, I check for a DEBUG boolean constant, and if it is enabled, I run my debug task, and otherwise I ...
0
votes
2answers
120 views

explanation of kalman filter

I have gone through my lecture notes but I can't seem to figure out the five different steps of a Kalman filter and how these steps are Divided into prediction and correction and how the state and ...
1
vote
2answers
816 views

MPU9255 gyro data to roll pitch?

So I have -32768 to +32768 coming out from MPU9255 (gx,gy,gz) which is converted to 0-250 dps(degrees per second) using 131 which is Gyro's sensitivity. My question would be how do you use this data ...
1
vote
1answer
766 views

how to move my robot to the assigned coordinates

I am working on an ground surveillance robot using an Arduino mega for programming, am using components like the HMC5883L compass, Adafruit GPS for assigning of coordinates (latitude and longitude) ...
1
vote
1answer
70 views

Robot Graphical Representation in Real Time

I'm working with a robot intended to be placed in a tele-echography environment. To control the robot I'm using a 6D space mouse that control each degree of freedom of the robot. However, since the ...
1
vote
2answers
305 views

Robot won't work properly, claw will only go one way and will only open or close once per cycle

We're students trying to make a clawbot for a Science Seminar class. However, for some reason, whenever we try to move the arm or the claw in a certain way, it will lock up and only move that ...
1
vote
1answer
718 views

UR3 TCP/IP communication protocol

I'm currently programming a C socket for communicating via (Ethernet) TCP/IP with an UR3 robot which control software is version 3.3. I'm able to get raw data from the ports 30001,30002, and 30003. I ...
0
votes
2answers
82 views

TCP Communication with PCDuino

I'm working on a robot that is controlled by an xbox controller connected to a windows computer and commands are sent to a pcduino through a tcp connection. I have it working by sending a string of 1'...
1
vote
1answer
67 views

Programming A Rover [closed]

I am part of my College team which is planning to enter a Mars Rover Challenge. In the point of view of a programmer, where should I start? I know C is the main language NASA used for their Rover and ...
3
votes
1answer
674 views

simulation of robots

I am designing a new mechanism similar to robot arm. It would be a 6 or 7 axis with arms but not the same with traditional articulated arms. As a result, new DH matrix,and inverse kinematics involve. ...
-1
votes
2answers
522 views

Does C have advantages over C++ in robotics? [closed]

I want to build robots, and right now I aim to work with Arduino boards I know that they are compatible with c and c++, so was wondering which language is better for robotics in general? I know how ...
3
votes
1answer
415 views

Using 2x UARTs on STM32F072RB

I am trying to use 2x UARTs with ChibiOS on the STM32F072RB Nucleo Board. I initialized UART2 but I am still getting output on UART1 pins, which is totally weird. ...
0
votes
1answer
1k views

STM32_OC_Timing and IRQHandler

I created a program to simple time base delay (in seconds). I have problem: How to read a interrupt flag from channel 1 etc.? When I use ...
-1
votes
1answer
499 views

C++ and Create 2

I am trying to use C++ to talk to the Create 2 robot. Does anyone have basic code to write/read from the Create 2 using C++ or C? I am having trouble with converting Create 2 commands (like ...
6
votes
2answers
1k views

BeagleBone - PRU questions

I will be using at least one programmable real-time unit (PRU) to send pulses to a stepper motor driver but before I begin, I am trying to lay out the structure of my programs. I am using this ...
1
vote
1answer
493 views

Find the difference between two consecutive sensor readings in real-time in C

I am working on a Micromouse and it has three sensors. Call it S1,S2 and S3. For now, I have to use S1. The idea is this S1 controls the left motor and S3, the right motor. S2 will detect wall in the ...
1
vote
1answer
73 views

How to programatically calibrate Turningy esc?

I have a Turnigy ESC and I am controlling it from AVR. Now I need to calibrate it to set the range of the input. With a servo tester I managed to calibrate it without any problems, more or less by ...
0
votes
1answer
8k views

Line follower robot program [closed]

I am working on a line follower robot as part of my Microelectronics project, and am confused over what sort of code to use to program the "pic18f" microcontroller I'm using. Can someone give me ...
2
votes
1answer
15k views

How can I interface my CMOS camera module to an Arduino? [closed]

I am totally new to the camera interface and usage in an Embedded project, and would like to use a CMOS vision sensor like this.This project further will be used to power a small robot with on-board ...
2
votes
1answer
166 views

Arduino Uno getting a type of “HANGED” while runing samll code of switc debounce and Serial print

I am using Arduino UNO to read a push button every time it is pressed.Earlier i was simply reading the Digital IO pin to read the count and then i faced the condition of switch debounce regarding ...
3
votes
2answers
3k views

Unable to read pushbutton press properly in Arduino

I am trying to use a push button in order to know and print number of time a push button is pressed using a counter.But everytime i press the button , counter get incremented to sometime 3 and ...
5
votes
7answers
20k views

Bluetooth module HC-05 giving ERROR :(0)

I am working right now with Arduino UNO and HC-05 bluetooth module.I followed the instruction given on this link for wiring. So there are 2 mode of working with this HC-05 module Simple serial ...
5
votes
5answers
22k views

Is it possible to run multiple loops at the same time? (Arduino)

I've got a code where I have a motor running back and forth and buttons connected to a scanner, when I press the buttons it causes the motor to stop and over rides it. I would like them to run ...
-1
votes
1answer
252 views

Where I can learn algorithms or and find examples of code for controlling a rover? [closed]

I am a programmer by profession and new to Robotics. I have studied ECE, so know electronics, but not very familiar with mechanical aspects of robotics. I am working on a learning project with Dagu ...
0
votes
3answers
773 views

H-Bridge using atmega8 microcontroller

I want to use my atmega8 uC as a h-bridge. Can anybody give me the source code using C, so that the microcontroller acts as an H-Bridge.
1
vote
2answers
257 views

programming pan-tilt unit with C

I am trying to write a C code for a pan-tilt unit model ptu-d46 using visual studio 2010 in Windows 7, but I can't find any tutorial or reference on how to do so. All the user's manual mentions is ...
4
votes
1answer
591 views

Wifly Shield Not Connecting

I recently asked a question about the juniper WiFi shield, and am now working with wifly from spark fun. I've been using an updated version of their experimental library, and have been attempting to ...
11
votes
4answers
9k views

Fixed point arithmetic on microcontrollers

Often we use microcontrollers to do things in our robots, but need to make some calculations in decimal. Using floating point variables is very slow, because a software floating point library is ...