Let's Make Robots! | RobotShop

programming

explore the world via camera, Programmable, Through narrow places easily, battle with other robots
Using a
Since this Project was transferred from the project: Xpider--the smallest smart robot spider (Stop Updating)    I will describe the project infomation simplely. Read more
explore the world via camera, Programmable, Through narrow places easily, battle with other robots
Story of Xpider we have a little kitty in our office, her name is tea, and one day, we are curious what the world looks like from tea’s eyes. So we want to make a … Read more

Arduino code - switch statement

Hi, I code a program for my autonomous robot. I am sending numbers from 0 to 8 from Raspberry pi to Arduino through Serial communication. I have Rasp code. But arduino code has some problems. Please can you tell me how to write it best? I want to use switch statement to choose direction for my robot/motors. But when I compile that code to arduino on robot - my robot start doing only default commands. Please why????

 

Serial vs I2C communication

Hi, please, can you tell me difference between I2C and Serial communication and which is the best for communication Raspberry Pi 2 with Arduino (T'Rex Controller). Thanks

Attiny 2313/4313 servo driver

Hello everyone!

Attiny85/45s are great for small projects because nearly all pins can be used to drive servos simultaneously.

However 5 servos are nice but not enough. I found out that I have bought some Attiny4313s a while ago. They 20-pin chips that can be programmed via arduino. Now I am wondering how many servos it can control. There already are different approaches:

http://stefanfrings.de/servocontroller/index.html

Fun programming suggestions

Sup. I've been a lurker here since 2011. When I started I was very new to all of this. Electronics, software, and mechanics blew my mind. Of those three I gradually began learning electronics and software to the point where I could write Arduino sketches and understand the essential parts of most electronics datasheets (with mechanics seriously lagging behind). And I was a happy person. I then fiddled with more Arduino and even got myself a Raspberry Pi. A bit earlier, I had made a robot that was capable of finding and extinguishing candles.

C# To Arduino Programming

Good morning LMRian's.

I have purchased my very first Arduino (Uno), and am trying to find a simple "blink" tutorial to use C# (Visual Studio 2012) to the Arduino onboard LED.

Can anyone please recommend any links?

The Joy of Logic.

There was an excellent program on BBC 4 last night - The Joy Of Logic, introduced by Prof Dave Cliff (the guy who wrote the 'Zip' trading algorithm, if that means anything to you).

It follows the development of logic from the ancient Greeks up to the present day in an intelligent but acccessible form with a great demo being a computer made from children (without removing their brains) performing an addition function.  It also highlights the major figures in the development of logic, and the trials and tribulations along the way (curse you, Godel!).

Learning to Program PICs in C (which compiler to learn with)

Hello LMR,

I'm a newbie here and I was hoping to draw upon the collective wisdom of your members. first of all let me say in no uncertain terms that I do not fancy myself a programmer. I have tinkered around with PIC microcontrollers for a few year using assembler (MPASM) and a little basic (PIC Basic Pro). I can usually muttle through making a simple project with these tools. But now I find myself deployed with a lot of time on my hands and I want to put it to use learning to program in C.

Getting started with C on the Raspberry Pi

Hi all,

This is a really simple question, but I can't seem to find an answer online. I'm just starting to learn C in order to programme my Raspberry Pi which will lead to my first robot. I've done a fair bit of programming in VB before, but C is completely new to me.

I'm literally starting at the beginning with the 'Hello World' text and my code is:

 

#include <stdio.h>

int main()

{

printf("Hello world!"\n);

Hello LMRians, This is a PID implemented line follower using an Arduino ATmega168 clone, Pololu QTR-8RC sensor array, a Pololu TB6612FNG Motor Driver, and super … Read more

Programming Language

Greetings all.

I am hoping to get some pointers for a long term project that I am undertaking. I would like to create an interactive "head", similar to this: https://www.youtube.com/watch?v=4vG65xL1aNg

I am planning on using Ardunio devices to control the servo's, and buying a "text-to-speech" program for the voice.

My question is, what programming language would you recommend that I build the interactive software taking users inputs, and creating responses? C? C#? Similar?

Arduino Sketches are "Evolving" for Official Robot.

When programming my "Official Arduino Robot" I have noticed that routines that would work on my previous robots need modification (this is under Arduino Sketch ver 1.05.)

Example:

Arduino Code Troubleshooting - VEX Transmitter / Receiver

I'm trying to read the signals sent from the VEX transmitter to the VEX receiver through my Arduino Mega. I started with this code and then made some modifications to visualize the outputs.

Thought I'd share my upcoming game

I've been hard at work since March. I've been trying to write a game with Python, and I must say that it all went smoothly until I hit networking like a stone wall. It took a couple of weeks, but I figured out how to make it work, and I guess that I'm soon approaching something playable (maybe a playable free for all server as soon as school ends or earlier). Oh, by the way it's a 2D multiplayer online platformer shooter licensed under Creative Commons. So it's free.

Once a CD Drive, now a scanner
I created this scanner after working with it, either directly or indirectly (I mean I had to learn how to use Stepper motors, program in the Processing software, … Read more
Tells the direction of motion
The device uses 2 ldrs. It is programmed to check if any of them is low(I mean not receiving light). If so, then it checks if now the other one is low. Based on … Read more

Dagu Magician Arduino Compatible Controller Board

As long as I'm waiting for the delivery of my Arduino UNO board, I have a "Dagu Magician Arduino Compatible Controller Board" bought low.
The instructions can be found here ... DAGU Board Manual
But I do not know on what kind of board I should put the Arduino IDE.
The board operates one ATMega8.

Has anyone ever used this board and programmed? I would appreciate help.

This would be the most advanced robot I have ever done. It's a humanoid robot based on the arduino mega 2560. I created several functions like the attack mode … Read more
RGB LED Glows in 7 different shades.
7 different shades of RGB LED.. Enjoy watching it.. And the URL that I have provided abive is for watching a slideshow of some pics captured during programming a … Read more
Different colours at different rates
The RGB led glows in 7 colors and at 2 different rates. Hope you like it......Cheers...... Read more
Counts down from 9 to 0 and beeps too
This is one of my 1st Arduino projects. Along with Arduino, I've used a seven segmeent led display and a piezzo buzzer. First, it beeps to indicate start. Then, … Read more

photocell with motor, no programming

Hi, im new to the forums and I need some help running a dc motor with a photocell without any micro-controllers.

Heres the list of parts I have:

-Tip120 transistor

-1n4004 diode

-1k resistor

-photocell

-solderless breadboard

-jumper wires

-9volt batter with battery connector thing

-a small dc motor (i dont have much information about it except that it seems to run on 3.3volts:( )

Can Arduino RBBB programmed wirelesly by wixel?

I have an arduino rbbb for my robot and i want to upload sketches wirelesly via wixel and wixel shield.. I am asking because at the description of wixel-shield says that it will not work with arduino Leonardo.. and i am wondering if that also happens with rbbb. It's not an official arduino so that's maybe the reason why it is not mentioned if they are not compatible. Any suggestions would be very helpfull.. thank you!

 

New Video

I've posted a new video on the http://ralphsrobots.com site.

This one is about using fixed point math in computer programs in general.

Fixed point runs faster and takes less program memory space. This is because when you use floating point math, sophisticated procudures are automatically linked into your program.

 

 

RF Link Help

I have been expiramenting with some RF links (tutorial here, RF link). The tutorial is great, but it only does serial communications. 

The code I use is 

 

// transmitter.pde

//

// Simple example of how to use VirtualWire to transmit messages

// Implements a simplex (one-way) transmitter with an TX-C1 module

//

// See VirtualWire.h for detailed API docs

// Author: Mike McCauley (mikem@open.com.au)

// Copyright (C) 2008 Mike McCauley