In which language is picaxe programmed and in which language is the arduino and which is better!@!
Question by oallaa | last reply
How to i control a servo with the picaxe can someone explain in detail i saw in the command section the servo and servopos commands but didnt quiet get it can someone plzzz explain it to me ang give a eg code for making a servo move from side to side .
Question by robot1398 | last reply
Hi there instructables, recently I have bought a picaxe starter kit, soldered it and stuff, played with some code and leds, but now I want to make a time control, so I bought a cheepo alarm clock, desolder the piezo beeper and extended the wires so I can conect them to my picaxe, turns out its too sensitive, the pin I've set to input piks up heat fom my fingers about a centimeter away, breath too, I think it picks up grounding as a signal too, does it ment to be that sensitive or have I messed something up with soldering or the code? heres the code I used main: if pinc.4 = 1 then goto led goto main led: high c.1 pause 500 low c.1 pause 100 goto main
Topic by batonas | last reply
Ive been using this picaxe uC for a while and have had no problems, but in my latest project I wanted to pan a servo back and forth. Problem: for the life of me I can only get the servo to move in one direction. It is a GWS pico servo and I have "operated" it on 5v and 6v, so i dont believe it to be a voltage issue. coding issue perhaps? ( I have tried the SERVO command, the SERVO and SERVOPOS command, and even the correct PULSOUT commands to no avail) I have scoured other forums, even rev-ed.com's, but no one seems to have my same problem. As far as I know the SERVO command SHOULD work fine but doesnt. I have tried the commands with and without a 220 ohm resistor on the signal wire, but this seems negligible. When my picaxe 18x is loaded with any servo capable code and the connections are all hooked up, the servo simply moves all the way and stops. the only way i can "reset" my servo to its original position is by quickly removing and tapping the V+ or GND supply wire to the servo. after the servo has moved I can feel the tiny motor jiggle whenever I tap the signal wire as if trying to work. ANY suggestions are welcome!
Topic by Aleator777 | last reply
Here is the code for a breathnalayzer using picaxe14m2 ignore the if b2= as i have to experiment and get the values and i havent done so. the code stores messages in eeprom and in the starting it operates a rgb led to create effects the code: low B.0'initialise lcd outpu pause 500'wait for lcd to initialise 'load messages in eeprom EEPROM 0,("NO ALCOHOL") EEPROM 10,("ONE OR TWO DRINKS") EEPROM 27,("BUZZED") EEPROM 33,("DRUNK") EEPROM 38,("WASTED") EEPROM 44,("BLOW ON THE SENSOR FOR 5 SEC") high b.2'red pause 2000 low b.2 high b.3'green pause 2000 low b.3 high b.4'blue pause 2000 low b.4 pause 1000 high b.3,b.4'sky blue pause 2000 low b.3,b.4 pause 1000 high b.2,b.4'pink pause 2000 low b.2,b.4 pause 1000 high b.3,b.2'yellow pause 2000 low b.3,b.2 pause 1000 high b.2,b.3,b.4'white pause 2000 low b.2,b.3,b.4 pause 1000 for b0=45 to 75 'print blow on the sensor read b0,b1 serout B.0,n2400,(254,1,b1) next b0 main:readadc B.1,b0 if b2=54 then main1 if b2=45 then main2 if b2=45 then main3 if b2=45 then main4 if b2=245 then main5 goto main main1:high b.3'on green led for b3= 0 to 9'print no alcohol read b3,b4'read eeprom locations 0to10 serout b.0,n2400,(254,1,b4) next b3 low b.3 goto main main2:high b.4'on blue led for b5= 11 to 27 read b5,b6 serout b.0,n2400,(254,1,b6) next b5 low b.4 goto main main3:high b.3'sky blue high b.4 for b7= 28 to 33 read b7,b8 serout b.0,n2400,(254,1,b8) next b7 low b.3 low b.4 goto main main4:high b.3'yellow high b.2 for b9= 34 to 38 read b9,b10 serout b.0,n2400,(254,1,b0) next b9 low b.3 low b.2 goto main main5:high b.2'red danger for b11= 39 to 44 read b11,b12 serout b.0,n2400,(254,1,b12) next b11 low b.2 goto main
Question by robot1398 | last reply
I have solved the problem by making two changes.Firstly, a 22k resistor was put from I/O 2 to ground.Secondly, I had to modify the program to be the following, and accept any value as an input as long as it was not 0. The new program is shown below:main:low 1 'discharge led on Pin 1input 2 'make pin 2 an inputreadadc 2, b1 'read pin 2 using ADCif b1 > 0 then flash goto main 'loop back roundflash:'led sequencehigh 1pause 100low 1goto mainI've been having a bit of an odd problem...I'm trying to use a PICAXE 08M with a touch input, so a user touches a wire or bridges 2 wires and the uC responds based on the program, at the moment, turns an LED on.Now, Initially, I've tried a few things, until sort of by accident I noticed that using the program I was, the LED turned on by touching the input pin of the PICAXE, with nothing attached to it except one short piece of wire. I know the human body has certain capacitive qualities, but I wouldn't have thought it would be enough for this. The LED started turning on when I got close to the breadboard it was on, never mind the wire.I tried moving the board, while I had my finger on the wire, and found that when I got a certain distance from my laptop (About 1 ft or so) the LED would go out, and not come on again. Strangely, it does the same when my laptop is turned off!So what I was wondering is, what could my laptop be doing that enables the PICAXE to get an input from seemingly nothing? Could it be some sort of EM field from it? Incidentally, the same thing happens close to my TV.The code i'm using is below.main:low 1 'discharge led on Pin 1input 2 'make pin 2 an inputreadadc 2, b1 'read pin 2 using ADCif b1 < 40 then flash goto main 'loop back roundflash:'led sequencehigh 1pause 100low 1goto main
Topic by whatsisface | last reply
Ok, i havemade a little picaxe code that i hope will do exactly what i want. I made this to make a light show from a light show... the imput is the 1 led that would normally be blinking like a maniac. I want to use its blinking to make another light blink a little more interestingly. PLEASE TELL ME IF THIS WILL DO WHAT I WANT! CODE: main: pulsin 6, 1, b3 if b3< 50 then high 9 pause 2 else low 9 pause 2 endif if b3< 10 then low 9 pause 500 high 9 else high 9 pause 100 low 9 endif if b3> 50 then low 9 pause 900 high 9 pause 17 low 9 pause 220 high 9 else high 9 pause 20 low 9 pause 416 high 9 pause 22 low 9 endif if b3> 10 then low 9 pause 20 high 9 pause 921 low 9 pause 19 high 9 else high 9 pause 543 low 9 pause 22 high 9 pause 611 low 9 endif if b3< 25 then low 9 pause 442 high 9 pause 224 low 9 else high 9 pause 61 low 9 pause 669 high 9 endif if b3> 25 then low 9 pause 229 high 9 pause 29 low 9 endif if b3< 75 then high 9 pause 224 low 9 pause 442 else low 9 pause 424 high 9 pause 242 endif if b3> 75 then high 9 pause 717 low 9 pause 171 else low 9 pause 123 high 9 pause 321 endif goto main I am using a picaxe 14m with a serial programmer. i just need to know about the code. And dont ask "why dont u test it urself" I have good reason not to test it. The board is in another state... anyway, plz tell me about the code and if it will work. If possible, make sudjustions.
Question by sci4me | last reply
I want to get started using PICAXE microcontrollers after using both PICs and AVRs before, and I have already learned the BASIC language, it's pretty easy, as the name would suggest. My main interests with them are that they can be easily programmed with two resistors and a 3-pin serial cable, they are easy to program and have ADC inputs, and also audio functionality. What would be a good place to get started, I was looking at the 08M, but it looks like it was recently discontinued and replaced by the M2. The reason I don't really want to move on is because I have just learned the pinouts and functions for the 08M, and also a lot of projects here on instructables utilize it. I was looking at building the tic tac tunes.I also noticed that it has the markings "12F683", so does this mean I could just buy a pic 12F683 chip and use it as a picaxe? Are they identical or is there a subtle difference in them. I also noticed that the audio functionality seems to be very limited in that the smaller chips only do polyphonic notes, and the mid sized chips only do mp3 from eeprom, and only the very large 40 pin chips do audio. What is the smallest chip that supports a full range sound file. Memory shouldn't be too much of a problem as the clip is only about a second long, so one with 256k should be fine, as long as it features internal audio. My last question is what should I buy, as in chips (universal and common experimentation chips), and any other accessories I may need. By the looks of things, all I need is the chip, a headphone socket, resistors, and a download cable.
Question by andy70707 | last reply
Does anyone have an idea of how one could get a picaxe to monitor its own battery source and light an LED when the voltage drops below a certain value. I am thinking that there might be a way to do it using a ADC input. Perhaps a zener diode could be used and the voltage above its threshold could be measured.
Topic by biochemtronics | last reply
The USB programming cable for a PICAXE is $25, which seems a bit high. The serial cable is only $5 but my computer doesn't have a serial port. So. This is what I propose to do. Use these the serial cable and a USB to serial cable and a cheap proto board like so: USB to serial + Serial to PICAXE + PICAXE Will this work? If it does, it can save about $12.
Question by cowmanpoke | last reply
I have repeatedly tried programming my picaxe with all the different schematics on the Internet and on the picaxe site but none of them have been a success would anyone be able to post a schematic that you have had success with for me? Thanks
Question by west49rules | last reply
On the Picaxe website, it says that the software will run on any Windows program but does not mention Windows Vista. Will it run on my Vista computer?
Question by DELETED_afw11 | last reply
I program my picaxe turn it on and it runs sweet for about ~20s and then after perfect operation the led that was on starts blinking and it then doesn't respond to any thing? The function of this program was to turn an led when the readabc from an input is under 100. when i connect the +ve to the input it makes the debugger say 255 but then it doesn't get any new debug data some times all the other variables change as well and its real erratic. Any reasons why this may be happening?
Question by wee_man | last reply
I wanted to use a PICAXE 08M2 in LED Throwie application so i wanted to know is it safe to solder it directly or i have to use a 8 Pin DIP socket ?
Question by Bot1398 | last reply
And which one would you advise?
Question by selujtje | last reply
Is there any cheap way to program a picaxe? How do you use the usb audiojack cable with the audio jack to program the PicAXE? pls help me... If you have any extra PICAXE can you send them to me please?? I live in singapore... so email me then i can tell you my address... The PICAXE here is ridiculously expensive so Im trying to find a reliable seller...
Question by Boppo3 | last reply
I have the PICAXE USB Programmer from sparkfun but it does not work it says no hardware detected on COM 4 I have installed the drivers I am using Windows XP.how can I get it to work.I have made the download circuit correctly.
Question by Bot1398 | last reply
Hi, Bit of a daft question really. I am trying to output my clock data from my Pic' 28X2 to a custom array of LED's. I have the code that reads my clock (RTC DS1307) and coverts the BCD input to decimal but no matter what I can't seem to find out how to output the decimal data or have the picaxe arrange it in such a way that it will be displayed on my LED array. My array is, put simply, an LED version of an analogue clock with 60 LEDs for the seconds, minutes etc. If I could have some pointers with regard to either decimal output or BCD output to a dedicated BCD to DEC chip, that would be much appreciated. Thanks
Question by LED Maestro | last reply
How to download date into the PICAXE 18m2 ? im really confused over this. the products i have : picaxe 18m2, uln2803a( not sure if this is necessary), chi030 project board, AXE027 cable, and 3 AA batter power supply. i basically have the demo kit. i was wondering if you could use this kit to download the date from the PICAXE programming editor to the picaxe18m2 or do you have to build a separate download circuit to accomplish this ? if someone can clear my confusion. im also confused about the USB Download Circuit and Serial Download Circuit and their difference. if someone can make a small guide using pictures or video and maybe even do the demo led test off the picaxe manual, (http://www.picaxe.com/docs/picaxe_manual1.pdf) i would greatly appreciate it. thank you
Question by dudeitskumar | last reply
Question by wee_man | last reply
Q1-here is the code for picaxe 08m2 will it work or something is wrong Q2-to repeat a code what value do i have to give for the FOR loop i have assumed it to be 0 to 0 THE CODE--------- main: if pinc.4 = 1 then main2 if pinc.0 = 1 then main3 if pinc.1 = 1 then main4 goto main main2:for b0 = 0 to 0 play 2,0 next b0 pause 2000 goto main main3:for b0 = 0 to 0 play 2,1 next b0 pause 2000 goto main main4:for b0 = 0 to 0 play 2,3 next b0 pause 2000 goto main
Question by e=mc^2 | last reply
Ok i am hoping someone can help me with this, i am not real new to electronics but i am to Microcontroller's i have done a lot with 555 and 4017s and transistors and so on the basic stuff. but my wife's letting me pick out what i want for my b'day and i am thinking about getting the picaxe from Sparkfun ( http://www.sparkfun.com/products/10803 ). and i am not sure what all i need i know i need the programing cable ( http://www.sparkfun.com/products/8313 ), but do i need this stuff the Ceramic Resonator ( http://www.sparkfun.com/products/9993 ) the PICAXE Bread Board Adapter ( http://www.sparkfun.com/products/8331 ) Breadboard Power Supply 5V/3.3V ( http://www.sparkfun.com/products/114 ). also i do have a decent homemade breadboard pic included to make sure its ok for gettin started in microcontroller's provided links to make my question easyer to answer (i hope), also i dont know any programing but i am wanting to learn i am just wondering if this would be the way to get started and what i would need. Thanks in advanced for any help? William
Question by World of warcraft junkie | last reply
The instructable https://www.instructables.com/id/Control-real-world-devices-with-your-PC/ all the code is done in VB.net and im using linux nw and i need someway to set this up in linux i don't mind if it is flash for not i just need it to work
Question by wee_man | last reply
Hi there. I recently got a Picaxe 18m2 project board and I want to run up to eight servos off it, if thats even possible. Would I need a separate servo driver/controller for that number of servos or perhaps a different microcontroller? Any examples of code for operating more than one servo at a time would be appreciated also. By the way, apart from reading 'Robot builders bonanza', my technical experience consists of operating 'Bigtrak' when I was about 12 and changing the odd plug. Cheers.
Topic by jonnymelon | last reply
What is the difference between a picaxe 08 microcontroller and a 08M microcontroller? is the 08m better? If so for what reason?
Question by Barramundi | last reply
Hi, I am having problem in communicating with PC with Picaxe 28x2. Please help me in solving this problem as it is a very important project My aim is to send the values of w1 and w2 variables ( values of the ultrasonic range sensors 1 and 2 ) to the PC and display them with the help of VB my picaxe code is ..., #picaxe 28x2 main: pulsout C.1,2 pulsin C.1,1,w1 pause 10 pulsout C.2,2 pulsin C.2,1,w2 pause 10 sertxd(#w1,#w2) pause 100 goto main and my VB code is , Imports System.IO Imports Strings = Microsoft.VisualBasic Public Class Form1 Public Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Integer) Dim WithEvents serialPort As New IO.Ports.SerialPort Dim PicaxeRegisters(0 To 1) As Byte Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Timer1.Enabled = True Timer1.Interval = 5000 End Sub Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick Call SerialTxRx() End Sub Sub SerialTxRx() Dim labelstring As String = "" Label1.Text = "" If serialPort.IsOpen Then serialPort.Close() End If Try With serialPort .PortName = "COM1" .BaudRate = 9600 .Parity = IO.Ports.Parity.None .DataBits = 8 ' 8 bits .StopBits = IO.Ports.StopBits.One .ReadTimeout = 1000 .Open() .Read(PicaxeRegisters, 0, 2) .Close() End With For i = 0 To 1 labelstring = labelstring + " " + Str(PicaxeRegisters(i)) Next Label1.Text = labelstring Catch ex As Exception MsgBox(ex.ToString) Label1.Text = "Timeout" End Try End Sub End Class I have not included the write command, since I have not included qualifiers in the picaxe code. The Picaxe chip is sending the values ( I used the terminal in picaxe programming editor to realise this) but the visual basic is not displaying me the actual values sent by the picaxe chip. It is showing random values instead ... So i think that there is an error in the VB code. PLEASE HELP AS SOON AS POSSIBLE .. Thank You
Topic by santhoshR
Am a newbee to picaxe working with mac soft- and hardware & i spent a a lot of time looking for the following: ------------------------------------ i would like to ... - transfer in- output data from simple components (such as a IR LED used for light/dark detection ) - .... via picaxe - ... to windows and mac computers in order to .... - pass them on to a website or eMail them ------------------------------------ i already had a look at ... - arduino/processing configurations (e.g. some amazing "twitter" variants posted on instructables, hack-a-day, etc. ... ) - additional external server projects (as on this site - e.g. very impressive webcams driven by websites and controlled by 'site users ...) - Nordic RF, Cellular, Zigbee, Bluetooth, XBee WiFi, FM Transmitter and Receiver, General TX/RX sending/receiving configurations (btw. - there is a very interesting comparison of these on sparkfun ---> http://www.sparkfun.com/tutorials/128 ) - very elaborate software solutions (using combinations of php, processing, python and other scripts) all of them being highly impressive and, most important of course: working well ------------------------------------ but - is there any quite easy-to-configure and budget way which does not require ... - additional, external servers - platform specific software (windows/mac/linux only) - the implementation of several software packages and runs with e.g. ... - a 08M2 picaxe (or larger).... - probably cheap component(s) (such as the Nordic RF mentioned on sparkfun) - a minimum of software requirements - a software/software component which is easy to install and configure (Visual Basic Macros doesn't seem to run once i created them via word on my mac) ? any hints are highly appreciated ...
Topic by marc_is_curious
PICAXE-28X1 Starter Pack (USB) vs Arduino diecimila which of these two boards is better for a beginner?
Topic by silva_p | last reply
I'm a student and programming newbie...please don't flame me.
Question by vincent hua | last reply
Hi there. So i connected a servo to output 4, joined the 0v lines, had the two power sources, downloaded the sample code etc. Nothing happened. I tested the system using the LED test from the picaxe manual and that was fine. I must have tried to work the servo off the project board twenty times, until I removed the 18m2, placed it on a solderless breadboard, plugged the servo into the board, joined it all together with jumpers and as soon as I connected power the servo started preforming the code I downloaded while the 18m2 was still in the project board. So why won't it work connected to the project board? I've tried using another output and a resistor on the signal line. If anyone has experience of working servos off a picaxe project board I'd appreciate a step by step walkthrough. As usual its probably something simple. thanks.
Question by jonnymelon | last reply
I want to connect an ultrasonic rangefinder to my robot and my robots brain is a picaxe 20m so i need a way of interfacing it with a picaxe 20m , im pretty sure it`s an ADC input so if anyone knows an adc to cm converter i would be very grateful!!! thanks in advance if anyone answers this!!! cm
Question by thecookiemonster | last reply
If so then can you provde a link or scematic/scource code. i would prefer it if there were no other ics besides the picaxe
Question by Barramundi | last reply
Note: I have attached a copy of my programming and the schematic of the circuit. As part of my school systems engineering course, I have decided to build an automated chook shed door. For the electronic side of this project i'm using a PICAXE microprocessor (PICAXE 08M - to be exact) to control the up and down operation of the door - which is done using a 12 volt linear actuator, all powered by a 12 volt battery (eventually to be rechagred by a solar panel). My theory is to basically read in the light level using an LDR and then based on this level to open the door, or close it. The is designed to work through the use of 3 relays (all with built in diode protection). The first relay is connected to the 12 volt power which supllies power to the other set of relays, and in effect the actuator, when ouput 0 is turned to high (I'm using transistors to do this as seen on the in the shematic). When I want to reverse the the motor I again turn ouput 0 to high, but also ouput 1 to high which switches the the other coupled relays (again using a tranistor) and in effect the polarities of the actuator.I'm also using two microswitchs on the bottom of the vertical sliding door as a safety mechanism, so that when the door is closing and an obstuction occurs (i.e a hand or piece of wood), its programmed to lift the door for about a second before trying to close again. As mentioned before it acts a safety mechanism so that no little fingers can be chopped off, and the actuator it self doesn't overload and blow up (although I'm pretty sure it has inbuilt protection for this anyway). Ok anyway to the problem, I have wired everything up as to the schematic I have provided, and loaded the program onto the chip (which it does successfully do) - however its not performing as desired. I have placed the same program onto another identical PICAXE system (except it is not obviously connected to all of the stuff mine is) and it works fine. I have also tried reducing the complexity of the program and taking out the LDR readings in the code, and when I do this, it does successfully turn on the relays as desired. For some reason it appears that the LDR is reading a full light level even when I place my finger over it, and because the IF statment in the program relies on a low LDR to operate, the code which turns on the relays never gets to execute. At first it seems that there may have been a problem with the LDR, so I changed it with a new one, but again it continues to read the highest value of 255 (or 1 byte) and therefore the program never executes as desired. I'm not sure why the LDR keeps reading the highest value. CAN ANYONE HELP!
Question by Mattdog123 | last reply
I want to get started in microcrontoller programming and was wondering if any one knew any good picaxe projects that aren't too complicated or not THAT easy!!!
Question by thecookiemonster | last reply
In other words, is the Picaxe microcontroller (any size) capable of recognizing a change from low to high (pressing a switch for instance) and acting on that change itself, not just the presence of a high? Or is there at least a way of emulating this type of response in the code? Thanks!
Question by Skidion | last reply