New Controller Board

Hi Dale,

Yeah, It’s got a nice ICE module, and a lot of stuff in the box. It’s available for trade!

We use a Hall-effect speed sensor along with a 6-pole ring magnet on the pump motors of our laundry controller. Motors are planetary drive, 200 RPM, 200 ma, 24V. I’ve noticed that 200 RPM seems like a usable speed for a small robot! No torque info. I just might have to make up a simple 'Bot and try them out. Easy to control, a FET switch driven by a PIC handles that. Even without the Hall-effect sensors, our circuitry can read the back EMF between driven PWM cycles. What’s on your 'Bot? PWM from an Atom board and some sort of driver board?

Pete’s code doesn’t use an ISR, as far as I’ve seen. Yes, you might replace the if…then…else with a switch statement.

Where’s this interrupt (ISR) code? I found _SI2CInterrupt() in Pete’s dspic_main.c, but not in the code I got from you. Will you be adding it? Maybe interupt_putch() is for USART/Timer. I don’t find it in any files I have.

Not really an ISR, just polling for event. I’d forgotten about the external interrupt line(s).

I’ve tried calling in a main loop about 10 times a second (init for master):
i2c_packet(123, 20, 20, FALSE);

But I don’t see an I2C cycles on my output pins (no Slave connected).

So I’ve not got it right yet. Are you able to do I2C between two uP chips with the code in the mater-slave I2C.C file? Maybe I just need to wait a while until you’ve made more progress.

That should kick things off!

Alan KM6VV

This is really what I need to mess with PSoCs from Cypress. I’m willing to even trade off some of the brackets for The BiPod to get this.

Just to give you an idea… I have GHM-04 motors on WALTER now, and they are 175 RPM, 99 oz/in torque. Just for grins, I cranked WALTER up to full speed (700) and turned him loose. He ran smack right into a wall, no time to even consider reacting to sensor detections. He now runs at speed 250 with pretty good results on sensor detections from the three Sharp IR Rangers.

The Open Servo guys are doing back EMF now, and many more cool things I don’t really understand a lot about yet as far as how they do the magic.

An SSC-32 runs the servos and PWM for the Sabertooth 2x5 motor controller. I will eventually try out the other many modes of control the Sabertooth 2x5 offers, but this mode is immediately compatible with the way I have WALTER’s code written for when he used CR servos to roll around with.

The dsPIC slave code uses the ISR for I2C. That is the code I am working to port over to the standard PICs.

The slave code is still very much non-working for the regular PICs right now. The only modifications I have done to the dsPIC code so far is to change the main OSC for the 14 MHz crystal (PLL8 instead of PLL16) and add my jumper reading and slave address setting code (which may still have a bug or two).

I just hope this new breadboard fixes the weird problems I have been having. I am optimistic right now. :slight_smile: I will have twice the breadboard space I have right now and a lifetime warranty on the board.

I have my two Renesas Starter Kits also (H8/36077 and H8SX/1664) to tinker with. I finally got some jumpers from SFE that will allow me to get signals from these starter kits to my breadboard. I need to get some dual row headers or sockets for the 1664 kit though. :frowning: Renesas seems to have gone real cheap on the 1664 starter kit, but hey, it IS FREE afterall. :slight_smile:

I have also been researching FPGAs and CPLDs, and have software from Altera, Actel, and Xilinx installed now. SFE’s Spartan 3E breakout board is a Xilinx Spartan 3E FPGA. I like a cool board from XESS much better though even though it is twice the proce. It has 1,000,000 gates, and a lot more though.

8-Dale

Hi Dale,

Let’s see what deal we can strike!

That’s pretty fast! I wish I knew the torque of my motors. If I had brackets designed and made up, I could see how fast a 'Bot could move with them. It did down on me that I’ll need an H-bridge to run the motors, not just a single-direction PWM. A Sabertooth might do that.

I’ve seen the code to to the back EMF. I’d have to modify it to be bi-directional.

Yeah, I saw the modes. I need to get one of those motor controllers.

That would explain some of it.

OK, didn’t mean to rush you, I had it in my mind that they were talking already.

That could very well be what you needed!

Tons of stuff to investigate there. I’ve done PLA, PAL and similar small devices. Write boolean logic, program the parts!

Alan KM6VV