To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.handyboardOpen lugnet.robotics.handyboard in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / Handy Board / *5564 (-10)
  Re: Type conversion.
 
(...) Hi, what you want to do is called type casting,ie. you must explicitly specify the type. I've included some sample code that uses it. Because the beeper function expects a float but the knob function returns an integer, you have to modify the (...) (26 years ago, 19-Feb-99, to lugnet.robotics.handyboard)
 
  Re: Type conversion.
 
FEDERICO SANTELLO wrote: <snip> (...) Federico - - Try doing it this way: (it's called a "cast") int temp; float dtemp; temp = 5; dtemp = (float)temp*3.5; printf("dtemp=%f\n",dtemp); Enjoy, - - - Nick - - - (26 years ago, 19-Feb-99, to lugnet.robotics.handyboard)
 
  Re: color sensors
 
I believe that you will find that most photo transistors are sensitive to a very narrow range of frequencies, mostly in the IR range. OTOH a photo resistor is sensitive to a much wider range of frequencies and may be usable with a (colour) filter. (...) (26 years ago, 19-Feb-99, to lugnet.robotics.handyboard)
 
  Type conversion.
 
Hi to all. I'm not very practice with IC. My answere are , how can i convert a integer number to a floating point number? I want to make a moltiplication between an intger number and a floating. I make this: int temp; float dtemp; dtemp=temp*3.5; (...) (26 years ago, 19-Feb-99, to lugnet.robotics.handyboard)
 
  Polaroid Sensors
 
I just finished wiring up the HB for dual sonar sensors... A couple of problems... The first and most important is the fact that the values returned look to be completely random and often flipping between positive and negative values... Could this (...) (26 years ago, 19-Feb-99, to lugnet.robotics.handyboard)
 
  Re: IR Sensors
 
James - - Here's a link to the QRB1114 data sheet: (URL) limited playing has shown two things: one - the sensor is very sensitive to visible light and therefore needs to be used with an auto-calibrate routine. two - you have to be very selective in (...) (26 years ago, 19-Feb-99, to lugnet.robotics.handyboard)
 
  Re: IR Sensors
 
James - - Here's a link to the QRB1114 data sheet: (URL) limited playing has shown two things: one - the sensor is very sensitive to visible light and therefore needs to be used with an auto-calibrate routine. two - you have to be very selective in (...) (26 years ago, 19-Feb-99, to lugnet.robotics.handyboard)
 
  SPI .vs. I2C and Documentation
 
Hi all, I've been looking for some way to connect multiple devices (Handyboards, other 68HC11's, PIC's, custom devices, & PC's). From what I can find, I2C is the Phillips protocol which is well documented and supported. (Docs, Specilaized chips, (...) (26 years ago, 19-Feb-99, to lugnet.robotics.handyboard)
 
  rc cars and HB- simple questions
 
Hello. I've seen several discussions abot RC cars here, and I have two questions trying to verify my findings. Has anyone ever dealt with Radio Shack rc cars? I bought the one that can move back and forth on tracks and also sideways on wheels. So (...) (26 years ago, 19-Feb-99, to lugnet.robotics.handyboard)
 
  Re: IR Sensors
 
James What you see as black and what is black to IR may be different. I did some experiments for a line following race, and found that some black markers actually made the paper reflect IR better than plain white paper. The conclusion of my (...) (26 years ago, 19-Feb-99, to lugnet.robotics.handyboard)


Next Page:  5 more | 10 more | 20 more

Redisplay Messages:  All | Compact

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR