Questions tagged [picaxe]

An embedded development platform based on Microchip PIC which can be programmed in BASIC or graphically through flowcharts.

An embedded development platform based on Microchip PIC microcontrollers pre-programmed to enable them to be programmed using a dialect of BASIC or by graphically designing the program through flowcharts.

PICAXE website

15 questions
2
votes
4 answers

BASIC random function giving a syntax error, not sure what the problem is

It's saying the error is just after the 11 but I can't figure it out please help 11 * RND(1) + 1;a if a = 1 then let pinsb = 01110111 if a = 2 then let pinsb = 00010100 if a = 3 then let pinsb = 10110011 if a = 4 then let pinsb = 10110110 if…
1
vote
1 answer

picaxe 28x1 random number generator

I have some simple code using the random number function from picaxes website (slightly adapted) symbol counter = b7 symbol randword = b5 for counter = 0 to 10 let randword = timer random randword write counter, b5 next counter end For some…
1
vote
1 answer

How to Maintain DC motor speed ( close loop feedback) by controlling Duty Cycle via PICAXE 14M2

I am making a washing machine by controlling motor speed using H-Bridge . The signals to H-Bridge's MOSFETs are controlled by a micro controller PICAXE 14M2. The Motor is coupled with a generator and a bucket that takes the load. Default duty cycle…
Tarik
  • 19
  • 2
0
votes
1 answer

Binary Calculator using Picaxe microchip?

I want to be a complete nerd and make a very simple binary calculator. It will be two rows of 8 switches, each switch representing a bit, so a row is a byte (number), the two rows are added together, and a row of 9 LED's will display the result in…
Nick Duffell
  • 340
  • 1
  • 6
  • 17
0
votes
1 answer

#define, #macro, #error refuse to function

I genuinely don't understand what's wrong with my code. #ERROR "Code not finished!" This claims a syntax error, despite literally being in the manual. I am expecting it to return "Error: Code not finished!" instead of "Error: syntax error". There…
Corsaka
  • 364
  • 3
  • 15
0
votes
1 answer

testing multiple variables on picaxe

I am trying to make a yahtzee scorer on picaxe, it is all okay other that the fact that there are so many different combinations. I am wandering if there is a way of testing whether 4 of my 5 variables are the same(no more and no less) without…
James Brennan
  • 635
  • 1
  • 6
  • 7
0
votes
1 answer

I can't get the RANDOM function in picaxe to work

I have to write a program which selects a random led and lights it up ,however I am having trouble getting the RANDOM function work. I have included the code i have below. main: RANDOM w0 w1 = w0// 10+ 1 SELECTCASE w1 Case1: high b.1 …
0
votes
1 answer

How to using picaxe net web server to send emails

I want to use PICAXE NET WEB SERVER from here to use to it as sending emails to a known email address. Can anyone please let me know if it is possible to do that? Since it supports only HTML, I am wondering how exactly it is possible do what I…
JPro
  • 6,292
  • 13
  • 57
  • 83
0
votes
1 answer

Storing inputs in a list with a pic chip (picaxe programming)

Never used picaxe before and am wondering how to or whether I can store a list of input values in a list to execute at the press of a 'go' button. It is for a Programmable electrical vehicle I am making and am running out of time! Any lines of code…
0
votes
2 answers

Sending output from arduino to picaxe

I am doing a class project involving an Arduino Uno and a Picaxe 14m2. I am in the middle of attempting to code a program for the Arduino Uno that will allow me to send and output value to the input on the Picaxe. So in layman's, this is what I…
user2791308
0
votes
1 answer

As I can distinguish different data from Serial?

I trying to read by serial differents values, but i dont know hoy to split that, because the two values are numbers but from different source First i have a PICAXE sending converted data by ADC of light sensor by serial to python. Second i have a…
0
votes
1 answer

Picaxe 40x2 chip programming for loop (decrement)

so i am currently programming with Picaxe for my computer engineering class in high school. I currently have the code shown below to create a sort of tornado kind of effect but it is set to 1 speed. I am trying to make it so each time it returns to…
0
votes
1 answer

How do I count on picaxe?

I am trying to count the number of times a button is pressed at input pin C.4 on a picaxe 14M2. I would then like to have a 'mode' that sets b.4 high for 5 seconds then low. This 'mode' needs to repeat the number of times you press the button before…
0
votes
2 answers

About inputs in PICAXE 28X1

I have to check this inputs in BASIC with PICAXE 28X1: But I have no clue how I'm supposed to do that. A.0 or pinA.0 don't work, and input0 refers to pin 11. So how can I check pins 2 - 5..? Any help is appreciated~
kikones34
  • 371
  • 9
  • 13
-1
votes
1 answer

Sending serial data from android to a PICAXE microcontroller with usb cable

I am working on a project that including an android phone that sends simple serial messages to a picaxe microcontroller(14m2) like '1','2','a' etc. I searched alot on the web, and I only found a way that the android smartphone first "connecting" to…
itay_421
  • 313
  • 2
  • 9