Let's Make Robots!

programming

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:

A teaching experiment

Today in the robotics class I wanted to try an experiment. We have covered lots of stuff over the past few months, but not so much programming. In these next few weeks we will be concentrating on programming until we get some sweet kits, more news on that later. 

I have been trying to think up cool and interesting ways that the kids can learn programming whilst getting their hands dirty. It's hard to install software on the school computers so we don't have the IDE up and running yet, but I'm working with the IT admin on that. 

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.

Teaching school kids basic programming and electronics

UPDATE: 19/10/2013

Sorry no updates for a long time. I find that whilst trying to organize lessons and actually doing them I don't find much time to record or take pictures.

This would be the most advanced robot I have ever done. It's a humanoid robot based on arduino mega 2560. I created several functions like the attack mode which … 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

Programming a STM32F0

I recently got my STM32F0 discovery board, and now i am struggling to program it.

I am using CoIDE, and when i try to debug (what i think is how to program it) than it can't find the toolchain path.

Does someone know what i'am doing wrong?

 

Arduino stops uploading

Hi,

Can anyone verify for me, that trying to upload a program to Arduino MEGA or maybe any Arduino, the upload stops if the code contains a constant string including !!! ?

like this small one will fail:

// Upload will never end
void setup() {
  String A = "!!!";
}

void loop() {
}

 

this one will finish:

// Upload will finish
void setup() {
String A = "aaa";
}

void loop() {
}

 

Do task according to pulse count or frequency

Hi

I am trying to make a program for a picaxe 20m2 chip such that it continuously counts pulses in 100 milli seconds and do specific tasks according to the no. of pulses, for ex- light an LED connected on pin b.0 for 1 second when the pulse count is 100 and light another LED which is connected to pin b.1 when the pulse count is 200. it should be like that it ''continuously monitors'' the pulses coming on one of the pins (say c.7) and do tasks accordingly but I have no idea how to do it.